Check for existing issues
What happened?
I am attempting to configure Codex to use LiteLLM as a proxy to DeepSeek due to Codex no longer supporting the chat/completions API. However, when running LiteLLM as a proxy, I obtain the following error:
Steps to Reproduce
- Export DeepSeek API key
- Run LiteLLM:
litellm --model deepseek/deepseek-v4-pro
- Run Codex and input a command
Relevant log output
{"error":{"message":"litellm.BadRequestError: DeepseekException - {\"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\":
\"invalid_request_error\",\"param\":null,\"code\":\"invalid_request_error\"}}","type":null,"param":null,"code":"400"}}
What part of LiteLLM is this about?
No response
What LiteLLM version are you on ?
1.92.0
Twitter / LinkedIn details
No response
Check for existing issues
What happened?
I am attempting to configure Codex to use LiteLLM as a proxy to DeepSeek due to Codex no longer supporting the chat/completions API. However, when running LiteLLM as a proxy, I obtain the following error:
Steps to Reproduce
litellm --model deepseek/deepseek-v4-proRelevant log output
What part of LiteLLM is this about?
No response
What LiteLLM version are you on ?
1.92.0
Twitter / LinkedIn details
No response