Skip to content

Translation app breaks gpt-5 usage, due tue max_tokens and logit_bias #133

Description

@choseh

Hi,

when using gpt-5 model(s) the translation app will break the application.

ERROR:slack_bolt.App:Failed to run an internal function (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'}})
ERROR:slack_bolt.App:Failed to run an internal function (Error code: 400 - {'error': {'message': "Unsupported parameter: 'logit_bias' is not supported with this model.", 'type': 'invalid_request_error', 'param': 'logit_bias', 'code': 'unsupported_parameter'}})

changing max_tokens in app/i18n.py to max_completion_tokens works, also removing logit_bias. But it will probably break 4 models.

Cheers,
Alex

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions