File Upload API is not Working

Hi @sounak

The docs say:

curl https://api.openai.com/v1/files \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -F purpose="fine-tune" \
  -F file='@mydata.jsonl'

Do you see what is different in the example than in your code?

Reference:

See Also:

OpenAI API Docs: File Upload