Skip to content

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

Closed

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

Activity

  1. thdxr commented on Aug 11, 2025

    @thdxr
    Member

    does clearing ~/.cache/opencode fix it for you?

  2. self-assigned this
    on Aug 11, 2025
  3. ncecere commented on Aug 11, 2025

    @ncecere
    Author

    I cleared the cache and I'm not seeing the issue any more, just the issue mentioned in #1742 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

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