Deepseek use error

Resolved 💬 2 comments Opened May 11, 2026 by WinHuge Closed May 11, 2026

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 ↗

This issue has 2 comments on GitHub. Read the full discussion on GitHub ↗