open-notebook icon indicating copy to clipboard operation
open-notebook copied to clipboard

Some azure models use max_completion_tokens and some of them use max_tokens

Open shinhf opened this issue 4 months ago • 2 comments

I'm trying to use o4 mini from azure open ai and I get following error:

RuntimeError: API request failed: 500 - {"detail":"Error executing transformation: Error code: 400 - {'error': {'message': \"Unsupported parameter: 'max_tokens' is not supported with this model. Use 'max_completion_tokens' instead.\", 'type': 'invalid_request_error', 'param': 'max_tokens', 'code': 'unsupported_parameter'}}"}

I found out that the parameter was changed:

https://community.openai.com/t/why-was-max-tokens-changed-to-max-completion-tokens/938077/3

Would you be able to make changes in the open notebook?

shinhf avatar Aug 15 '25 20:08 shinhf

Yes, will work on it

lfnovo avatar Aug 16 '25 12:08 lfnovo

Thanks! Open notebook is awsome project!

shinhf avatar Aug 16 '25 13:08 shinhf