这是indexloc提供的服务,不要输入任何密码
Skip to content

[BUG]: ChatGPT - gpt-5 model: 400 Unsupported parameter: 'max_tokens' is not supported with this model. Use 'max_completion_tokens' instead. #4304

@fkffm

Description

@fkffm

How are you running AnythingLLM?

AnythingLLM desktop app

What happened?

It seems that OpenAI changed the parameter name from max_tokens to max_completion_tokens for the gpt-5 model. Because of this, gpt-5 cannot be used in AnythingLLM and returns the following error:

400 Unsupported parameter: 'max_tokens' is not supported with this model. Use 'max_completion_tokens' instead.

Are there known steps to reproduce?

Configure AnythingLLM with the gpt-5 model. Testet with desktop app v1.8.5-r2.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Integration RequestRequest for support of a new LLM, Embedder, or Vector databasepossible bugBug was reported but is not confirmed or is unable to be replicated.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions