Skip to content

BUG: gpt-5 azure Unsupported parameter: 'max_tokens' #1697

@ncecere

Description

@ncecere

When using gpt-5 from Azure Ai Studio I get the following error.

AI_APICallError: AzureException BadRequestError - Unsupported parameter: 'max_tokens' is not supported with this model.
Use 'max_completion_tokens' instead.. Received Model Group=gpt-5
Available Model Group Fallbacks=None

I think OpenAI added new model parameters with gpt-5

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