I use this method to upload file:
response = openai.File.create(file=open("test.jsonl", "rb"), purpose="fine-tune")
I can’t give the name of the uploaded file and it will always be “file”. Earlier I used the OpenAI API CLI and it seems it used the name of my local file as filename in the uploaded list.
| File ID | Object | Bytes | Created | File name | Purpose |
|-------------------------------|----------|---------|---------------------|----------------------------------|-----------|
| file-okR5ToAuB9bUIID81CH7QtX2 | file | 205 | 2023-06-11 15:29:55 | file | fine-tune |
| file-DUQxtcx241NelpHnDxqMiywM | file | 205 | 2023-06-11 15:58:58 | file | fine-tune |
Can I somehow define the name of the uploaded file via the Python openai.File.create() call as well?