-
Notifications
You must be signed in to change notification settings - Fork 3.5k
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
Bug: The latest library of SemanticKernel does not support Azure o1 series models #9165
Comments
@2023pfm, can you provide more context for this issue? What was the version used, some code for reproduction? Currently we are using the new property from OpenAI SDK which already supports the new semantic-kernel/dotnet/src/Connectors/Connectors.AzureOpenAI/Core/AzureClientCore.ChatCompletion.cs Line 41 in b6675e7
Open SDK using the new name behind the scenes as you can see in here: So everything points me that you may be using an older release of our packages and that problem should not happen when using SK 1.22 moving forward. Let me know if you still have problems with the latest 1.22 and more details about your error and problem. |
running into the same issue on Azure. MaxTokens is not accepted for o1 models. o1 supports a new parameter instead called 'max_completion_tokens' |
I have the same issue. Using o1, Azure and AzureOpenAIPromptExecutionSettings on version 1.31. Note that it works if I don't set the MaxTokens in the AzureOpenAIPromptExecutionSettings, but once I try to set the MaxTokens, it fails. |
@RogerBarreto reopening to address the last two comments |
This issue is a duplicated from the issue below (since this one has less data I'm closing this) consider the following issue: TLDR: Azure SDK currently don't support o1 models and fails with the above message when attempting to providing max tokens. Other limitations were also identified like using the latest API preview versions. I provided a workaround posted here using a custom http handler that may be able to use SK against that model. |
The latest library of SemanticKernel does not support Azure o1 series models.
Reason for error: Unsupported parameter: 'max_tokens' is not supported with this model Use 'max_completion_tokens' instead.
Additionally, calling the tool may also result in an error stating that the tool is not supported.
What should I do now, thank you.
The text was updated successfully, but these errors were encountered: