Skip to content

gpt-5 from openai does not work for the chat #4353

@hputz

Description

@hputz

When i change the config.toml to:

[model.chat.http]
kind = "openai/chat"
model_name = "gpt-5"
api_endpoint = "https://api.openai.com/v1"
api_key = {my-key}

The chat always shows bad_request for each chat message. With gpt-4.1 it does work. I cannot find any additional information in the log even with debug enabled.

I'm on version 0.31.0

I used the api with gpt-5 in my own project and it does work, it is slow but it can reply.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions