Skip to content

Update OpenAI and Azure configurations: remove deprecated parameters …#571

Closed
prabhash-varma wants to merge 1 commit intomainfrom
fix/gpt5-max-completion-tokens-param
Closed

Update OpenAI and Azure configurations: remove deprecated parameters …#571
prabhash-varma wants to merge 1 commit intomainfrom
fix/gpt5-max-completion-tokens-param

Conversation

@prabhash-varma
Copy link
Contributor

@prabhash-varma prabhash-varma commented Mar 25, 2026

Summary

Fixed Unsupported parameter: 'max_tokens' is not supported with this model. Use 'max_completion_tokens' instead error reported on GPT-5.x chat models by adding the correct max_completion_tokens param and removing max_tokens via removeParams.

Also removed stale duplicate bare type-only entries for gpt-5.4-mini, gpt-5.4-mini-2026-03-17, gpt-5.4-nano, gpt-5.4-nano-2026-03-17 that were overwriting their correctly configured counterparts.

Related Issue

Client error: azure-openai: Unsupported parameter: 'max_tokens' is not supported with this model. Use 'max_completion_tokens' instead on GPT-5.x chat models.

Description

Please include a summary of the changes and the related issue. Please also include relevant motivation and context.

  • New model pricing
  • Update existing pricing
  • New model configuration
  • [ x] Bug fix

Source Verification

Source Link: [Add link here]

Important

Please include a link to the official pricing page from the provider. Simple "I heard it from somewhere" or screenshot sources are not accepted.

Checklist

  • I have validated the JSON using jq or an online validator
  • I have verified that prices are in cents per token (not dollars)
  • I have included the source link above
  • I have signed the CLA (if first-time contributor)

Related Issue

Fixes # (issue)

…and add new response format options for various GPT models.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant