Skip to content

Some azure models use max_completion_tokens and some of them use max_tokens #111

@shinhf

Description

@shinhf

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions