Skip to content

✕ [API Error: OpenAI API error: 400 Invalid request: an assistant message with 'tool_calls' must be followed by tool messages responding to each 'tool_call_id'. The following tool_call_ids did not have response messages: run_shell_command:4] #135

@oiuv

Description

@oiuv

What happened?

有时报错:✕ [API Error: OpenAI API error: 400 Invalid request: an assistant message with 'tool_calls' must be followed by tool messages responding to each 'tool_call_id'. The following tool_call_ids
did not have response messages: run_shell_command:4]

Image

What did you expect to happen?

正常运行不报错。

Client information

Details
$ gemini /about
# paste output here

<img width="886" height="237" alt="Image" src="https://github.com/user-attachments/assets/ea15eb42-53d5-4d08-b90f-a271f0688525" />

Login information

No response

Anything else we need to know?

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    type/bugSomething isn't working as expected

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions