Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
fribergpg opened this issue Feb 18, 2025 · 5 comments
Closed

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

fribergpg opened this issue Feb 18, 2025 · 5 comments
Assignees
Labels
agents bug Something isn't working .NET Issue or Pull requests regarding .NET code

Comments

@fribergpg
Copy link

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.

@fribergpg fribergpg added the bug Something isn't working label Feb 18, 2025
@markwallace-microsoft markwallace-microsoft added .NET Issue or Pull requests regarding .NET code triage labels Feb 18, 2025
@github-actions github-actions bot changed the title Bug: o3-mini cannot be used with OpenAIAssistantAgent .Net: Bug: o3-mini cannot be used with OpenAIAssistantAgent Feb 18, 2025
@JP-droidic
Copy link

+1, I have the same message

@JP-droidic
Copy link

Hi team, do you have any update on this or at least an idea how to mitigate this issue until there is a proper fix?

thanks

@crickman
Copy link
Contributor

The latest package may address this as we've updated our approach on option handling. I'll review this scenario with the current changes.

@crickman crickman moved this to Sprint: In Progress in Semantic Kernel Feb 21, 2025
@crickman
Copy link
Contributor

crickman commented Feb 21, 2025

I've verified Sample: Step01_Assistant.cs against o3-mini using main branch.

Image

@crickman crickman moved this from Sprint: In Progress to Sprint: In Review in Semantic Kernel Feb 21, 2025
@JP-droidic
Copy link

YEs working for us alos - thank you

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
agents bug Something isn't working .NET Issue or Pull requests regarding .NET code
Projects
Status: Sprint: In Review
Development

No branches or pull requests

5 participants