Skip to content

max_tokens is deprecated #13

Description

@CallMeMisterOwl

With the release of gpt-5 the argument max_tokens has changed to max_completion_tokens.
Using max_tokens with gpt-5 or gpt-5-mini returns errors.

Reference
https://platform.openai.com/docs/api-reference/chat/create

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions