Skip to content

An assistant message with │ │ "tool_calls" must be followed by tool messages responding to each "tool_call_id" #606

@LeOndaz

Description

@LeOndaz

What happened?

│ param: null, │
│ type: 'invalid_request_error' │
│ } │
│ ✖ OpenAI API Streaming Error: 400 <400> InternalError.Algo.InvalidParameter: 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: message[532].role │
│ ✖ Error when talking to Gemini API Full report available at: │
│ /var/folders/2g/307nnk1d70d9crqp_mh689hm0000gn/T/gemini-client-error-Turn.run-sendMessageStream-2025-09-14T1 │
│ 5-26-14-687Z.json

What did you expect to happen?

Call the tools correctly

Client information

Details
$ qwen /about
╭─────────────────────────────────────────────────────────────╮
│                                                             │
│ About Qwen Code                                             │
│                                                             │
│ CLI Version          0.0.11                                 │
│ Git Commit           b01ddf0a                               │
│ Model                qwen3-coder-plus                       │
│ Sandbox              no sandbox                             │
│ OS                   darwin                                 │
│ Auth Method          qwen-oauth                             │
│                                                             │
╰─────────────────────────────────────────────────────────────╯

Login information

Qwen auth

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
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions