I'm not able to upload a file for vision purpose in the Assistants API. Why is that?
I thought I'd be able since GPT-4o supports image input.
curl --location 'https://host.openai.azure.com/openai/files?api-version=2024-05-01-preview' \
--header 'api-key: key' \
--header 'OpenAI-Beta: assistants=v2' \
--form 'purpose="vision"' \
--form 'file=@"/Screenshots/123.png"'
{
"error": {
"code": "invalidPayload",
"message": "Invalid value for purpose."
}
}
This page shows only "assistants" and "fine-tune" purposes are available: https://learn.microsoft.com/en-us/rest/api/azureopenai/files/upload?view=rest-azureopenai-2024-05-01-preview&tabs=HTTP#purpose