The error occurs because Azure OpenAI's o4-mini model expects the parameter max_completion_tokens, not max_tokens. Phoenix previously sent max_tokens, which is not supported for o1/o3/o4 Azure models, resulting in the error you see. This was fixed in Phoenix 11.10.1 and later, but if you still encounter it, ensure your Phoenix and all related packages are up to date, and that your code or environment isn't overriding this fix. See <https://github.com/Arize-ai/phoenix/issues/8631|GitHub Issue #8631> and <https://github.com/Arize-ai/phoenix/pull/8661|PR #8661> for details.
If you are on the latest versions and still see this, double-check that your deployment is not caching old code, and that your model name is correct. The fix ensures the correct parameter (max_completion_tokens) is sent for o1/o3/o4 Azure models, resolving this error.
Would you like more detail or troubleshooting steps?
Sources:
- <https://github.com/Arize-ai/phoenix/issues/8631|GitHub Issue #8631>
- <https://github.com/Arize-ai/phoenix/pull/8661|PR #8661>