Currently getting a 400 error when trying to upload a file at the endpoint /v1/files
when it worked previously.
Is anybody else encountering this right now?
Currently getting a 400 error when trying to upload a file at the endpoint /v1/files
when it worked previously.
Is anybody else encountering this right now?
Welcome to the dev forum @atlascardengineering
Sharing the API call code would be helpful in diagnosing the issue.
Same here, the error message âThere was an error uploading the file: Invalid file format for Fine-Tuning API. Must be .jsonlâ is raised when I actually try to upload a standard .jsonl file which I could upload successfully yesterday⌠Strange.
Detailed error 400 : âYou didnât provide an API key. You need to provide your API key in an Authorization header using Bearer auth (i.e. Authorization: Bearer YOUR_KEY). You can obtain an API key from https://platform.openai.com/account/api-keys.â
Strange as I am trying to upload this file through the web interfaceâŚ
Problem seemed to be an encoding problem on my side.
I switched the format of my files from âUTF-8-BOMâ to âUTF-8â and everything is now working fine for me
Maybe try this as well @atlascardengineering?
curl --location âv1/filesâ
âform âfile=@âtext_file.txtââ
âform âpurpose=âfine-tuneââ
Hereâs the correct cURL call for file upload:
curl https://api.openai.com/v1/files \
-H "Authorization: Bearer $OPENAI_API_KEY" \
-F purpose="fine-tune" \
-F file="@mydata.jsonl"