Closed
Description
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:
- 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;
- Interact with the agent
- 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
Type
Projects
Status
Sprint: In Review