Qwen3-Coder icon indicating copy to clipboard operation
Qwen3-Coder copied to clipboard

API Error: OpenAI API error: 400

Open ericforai opened this issue 4 months ago • 1 comments

✕ [API Error: OpenAI API 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[855].role]

    • CLI Version: 0.0.1-alpha.8
  • Git Commit: 1732467 (local modifications)
  • Operating System: darwin v22.16.0
  • Sandbox Environment: no sandbox
  • Model Version: Qwen/Qwen3-Coder-480B-A35B-Instruct
  • Memory Usage: 278.6 MB

ericforai avatar Jul 28 '25 09:07 ericforai

seems that your toolcall inputs are wrong, plz give us a completion api request code to reproduce the promblems

cyente avatar Jul 29 '25 10:07 cyente