Skip to content

GPT-5 max_completion_tokens #7052

@codereptile

Description

@codereptile

Before submitting your bug report

Relevant environment info

Description

When using gpt-5, I get:

400 Unsupported parameter: 'max_tokens' is not supported with this model. Use 'max_completion_tokens' instead.

The reason is that only the o-series models apply the patch, gpt-5 doesn't trigger it:

// a) use max_completion_tokens instead of max_tokens

To reproduce

No response

Log output

Metadata

Metadata

Labels

area:configurationRelates to configuration optionskind:bugIndicates an unexpected problem or unintended behavior

Type

No type

Projects

Status

Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions