Description
Library name and version
Azure.AI.OpenAI 2.1.0
Describe the bug
o3-mini cannot be called from C# using the Azure OpenAI SDK because there is no place to add the api-reference and it defaults to 2025-01-31. I receive this error. This is not happening with o1-mini or gpt-4o-mini.
HTTP 400 (BadRequest)Model {modelName} is enabled only for api versions 2024-12-01-preview and later.
When I append "?api-version=2024-12-01-preview" to the endpoint I receive this error.
HTTP 404 (404)Resource not found
Expected behavior
Expect the same behavior as with 01-mini and gpt-40-mini
Actual behavior
HTTP 400 (BadRequest)Model {modelName} is enabled only for api versions 2024-12-01-preview and later.
Reproduction Steps
var aoai_client = new AzureOpenAIClient(new Uri(parametersO3MINI.Endpoint), new DefaultAzureCredential());
chatClientO3MINI = aoai_client.GetChatClient(parametersO3MINI.Model);
optionsO3MINI = new()
{
Temperature = parametersO3MINI.Temperature,
FrequencyPenalty = parametersO3MINI.FrequencyPenalty,
PresencePenalty = parametersO3MINI.PresencePenalty,
Seed = parametersO3MINI.Seed,
};
var messagesO3MINI = new ChatMessage[]
{
new SystemChatMessage(system_prompt),
new UserChatMessage(user_prompt)
};
ChatCompletion completionO3MINI = chatClientO3MINI.CompleteChat(messagesO3MINI, optionsO3MINI);
Environment
.NET 8