Skip to content

Azure OpenAI returned an unexpected error: 'max_tokens' is not supported with this model #31714

Open

Description

@parsa-e

Steps to Reproduce

  1. a
Image

Expected

No error

Actual

Error:
Request failed
Azure OpenAI returned an unexpected error.
Unsupported parameter: 'max_tokens' is not supported with this model. Use 'max_completion_tokens' instead.

Image

Activity

  1. linear-code commented on Nov 3, 2026

    @linear-code
  2. added a commit that references this issue on Nov 10, 2026
    1ed7a75
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions