I am using Azure OpenAI assistants. I am able to create assistants and threads but not the vector stores.
Running client.beta.vector_stores.create(name="Placeholder")
as per this document to create vector stores throws following error:
BadRequestError: Error code: 400 - {'error': {'code': 'API operation not supported for token authentication', 'message': 'ApiId openai-api-2024-05-01-preview OperationId create_vector_store not supported for CheckAccess.'}}
I am using from azure.identity import DefaultAzureCredential, get_bearer_token_provider
for authentication instead of api-key. Even after assigning myself these 3 roles, I am facing the same issue:
- Cognitive Services Contributor
- Cognitive Services OpenAI Contributor
- Cognitive Services User
I found a similar question but with no help.
Ask:
- If this issue is related to permissions, which roles should I assign to grant proper permissions?
- If not, please share the fix / documentation.
- Please share Azure OpenAI team's support email / DL