Share via

Azure OpenAI Assistants - Can't upload file with vision purpose

Andres da Silva Santos 195 Reputation points
2024-06-02T12:35:46.4933333+00:00

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

Azure OpenAI Service
Azure OpenAI Service

An Azure service that provides access to OpenAI’s GPT-3 models with enterprise capabilities.

{count} vote

1 answer

Sort by: Most helpful
  1. AshokPeddakotla-MSFT 36,016 Reputation points Moderator
    2024-06-04T13:40:00.2966667+00:00

    Andres da Silva Santos I have checked and confirm that it is not available yet. There is no exact ETA which can be shared now.

    Kindly follow the What's new in Azure OpenAI Service for more updates.

    1 person found this answer helpful.

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.