Skip to content

Add support for max_completion_tokens in AzureOpenAiChatOptions #3300

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

Open
iAMSagar44 opened this issue May 23, 2025 · 1 comment
Open

Add support for max_completion_tokens in AzureOpenAiChatOptions #3300

iAMSagar44 opened this issue May 23, 2025 · 1 comment

Comments

@iAMSagar44
Copy link
Contributor

Support for max_completion_tokens was introduced in ChatCompletionsOptions class (Azure SDK for Java - package com.azure.ai.openai.models) last year.

Reference - Azure/azure-sdk-for-java#43037

The maxTokens value is now deprecated in favor of max_completion_tokens, and is not compatible with o1 series models.

Reference - https://learn.microsoft.com/en-us/java/api/com.azure.ai.openai.models.chatcompletionsoptions?view=azure-java-preview#com-azure-ai-openai-models-chatcompletionsoptions-setmaxtokens(java-lang-integer)

@iAMSagar44
Copy link
Contributor Author

I have submitted a pull request for this change - #3305

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant