Some azure models use max_completion_tokens and some of them use max_tokens
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?
Yes, will work on it
Thanks! Open notebook is awsome project!