Skip to content

.Net: Bug: o3-mini cannot be used with OpenAIAssistantAgent #10594

Closed
@fribergpg

Description

@fribergpg

Description
To create an Assistant API-based system using OpenAI directly you need to use the OpenAIAssistantAgent entity, which takes an OpenAIAssistantDefinition, which takes a string for the model's ID.

In the background a "temperature" parameter (as well as a "top_p" parameter) seems to always be added. The problem is that the new o3 family doesn't allow these parameters to exist at all.

To Reproduce
Steps to reproduce the behavior:

  1. Create the agent
            var clientProvider = OpenAIClientProvider.FromClient(new OpenAIClient(_options.ApiKey));

            var assistantDefinition = new OpenAIAssistantDefinition("o3-mini")
            {
                Instructions = AssistantInstructions,
            };

            var assistantAgent = OpenAIAssistantAgent.CreateAsync(clientProvider, assistantDefinition, kernel, cancellationToken: cancellationToken).Result;

  1. Interact with the agent
  2. See error

Expected behavior
A response. The model works fine in platform.openai.com --> Playground

Error message
Unsupported parameter: 'temperature' is not supported with this model.

Platform

  • Language: C#
  • Source: NuGet package version 1.37.0 (latest as of today, 18th of February)
  • AI model: o3-mini
  • IDE: Rider
  • OS: MacOS

Additional context
Passing Temperature = null in the assistandDefinition didn't solve anything.

Metadata

Metadata

Assignees

Labels

.NETIssue or Pull requests regarding .NET codeagentsbugSomething isn't working

Type

Projects

Status

Sprint: In Review

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions