can't create open AI assistance via Azure.AI.OpenAI 2.1.0

Amir 10 Reputation points
2024-12-24T14:43:58.77+00:00

When trying to run AzureClient.GetAssistantClient();

I get an exception
System.InvalidOperationException: 'The preview Assistants feature area is not available in this GA release of the Azure OpenAI Service. To use this capability, please use a preview version of the library.'

User's image

I read some in the git that is should be working since 2.0.0
https://github.com/Azure/azure-sdk-for-net/issues/44574

Azure OpenAI Service
Azure OpenAI Service
An Azure service that provides access to OpenAI’s GPT-3 models with enterprise capabilities.
{count} votes

1 answer

Sort by: Most helpful
  1. Christian Palm 0 Reputation points
    2025-01-28T21:55:50.2233333+00:00

    Hi,

    I have the same problem and nailed it down to a problem on the c# side.

    I was switching between OpenAI and Azure OpenAI back and forth und figured out that the problem was introduced with Azure.AI.OpenAI Nuget package 2.1.0. I have an older test-project using Azure.AI.OpenAI 2.0.0-beta.5 and here the GetAssistantClient and GetVectorStoreClient functions are still working.

    So it's not dependend on the server configuration in Azure AI Foundry.

    0 comments No comments

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.