< BACK_TO_SONAR
[ ACTIVE DEPRECATION DETECTED ]

OpenAI API / openai-max-tokens-parameter-on-reasoning-models

Severity
High
Ecosystem
npm
Release Tag
Latest
Deadline
Immediate
Confidence
100%

>> Is your stack affected?

Paste your package.json below to instantly check if your application relies on this deprecated OpenAI endpoint.

No Card Required
Migration_Guidance
🚨 **Primary Error:** 400 Unsupported parameter: 'max_tokens' is not supported with this model. Use 'max_completion_tokens' instead. ✅ **Resolution:** Rename max_tokens to max_completion_tokens (it also counts reasoning tokens) and drop unsupported sampling parameters such as temperature for o-series models.