Getting 'assistants' is not one of ['fine-tune'] - 'purpose'

I’m strictly following the file upload API example for assistants but not getting expected result. It would be appreciated if the ETA for assistants to be allowed to file upload API.

curl https://api.openai.com/v1/files \
  -H 'OpenAI-Beta: assistants=v1' -H "Authorization: Bearer [REDACTED]" \
  -F purpose="assistants" \
  -F file="@[REDACTED]"
{
  "error": {
    "message": "'assistants' is not one of ['fine-tune'] - 'purpose'",
    "type": "invalid_request_error",
    "param": null,
    "code": null
  }
}
2 Likes

As of 2023-11-07 07:21 AM (KST), it seems the API is now working as expected. Thanks!

{
  "object": "file",
  "id": "[REDACTED]",
  "purpose": "assistants",
  "filename": "[REDACTED]",
  "bytes": [REDACTED],
  "created_at": [REDACTED],
  "status": "processed",
  "status_details": null
}
1 Like