Deepseek use error

Resolved 💬 2 comments Opened May 11, 2026 by WinHuge Closed May 11, 2026
💡 Likely answer: A maintainer (github-actions[bot], contributor) responded on this thread — see the highlighted reply below.

What version of the Codex App are you using (From “About Codex” dialog)?

unexpected status 502 Bad Gateway: DeepSeek 400: {"error":{"message":"An assistant message with 'tool_calls' must be followed by tool messages responding to each 'tool_call_id'. (insufficient tool messages following tool_calls message)","type":"inva, url: http://127.0.0.1:11435/v1/responses

What subscription do you have?

unexpected status 502 Bad Gateway: DeepSeek 400: {"error":{"message":"An assistant message with 'tool_calls' must be followed by tool messages responding to each 'tool_call_id'. (insufficient tool messages following tool_calls message)","type":"inva, url: http://127.0.0.1:11435/v1/responses

What platform is your computer?

_No response_

What issue are you seeing?

unexpected status 502 Bad Gateway: DeepSeek 400: {"error":{"message":"An assistant message with 'tool_calls' must be followed by tool messages responding to each 'tool_call_id'. (insufficient tool messages following tool_calls message)","type":"inva, url: http://127.0.0.1:11435/v1/responses

What steps can reproduce the bug?

unexpected status 502 Bad Gateway: DeepSeek 400: {"error":{"message":"An assistant message with 'tool_calls' must be followed by tool messages responding to each 'tool_call_id'. (insufficient tool messages following tool_calls message)","type":"inva, url: http://127.0.0.1:11435/v1/responses

What is the expected behavior?

_No response_

Additional information

_No response_

View original on GitHub ↗

2 Comments

github-actions[bot] contributor · 3 months ago

Potential duplicates detected. Please review them and close your issue if it is a duplicate.

  • #20976

Powered by Codex Action

etraut-openai contributor · 3 months ago

This looks like a problem with the proxy or provider that you're using, not a bug in Codex.