Skip to content

Add support for max_completion_tokens in AzureOpenAiChatOptions #3300

Open
@iAMSagar44

Description

@iAMSagar44

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)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions