Is it a request payload issue?
If it's a request payload issue, you MUST know
Our team doesn't have any GODs or ORACLEs or MIND READERs. Please make sure to attach the request log or curl payload.
Describe the bug
使用 OpenAI 兼容格式提供商接入DeepSeek官方API.
然而, DeepSeek v4 系列模型要求必须在调用工具的轮次后回传reasoning_content, 否则会400报错. 当前CPA版本未实现这一功能.
见 https://api-docs.deepseek.com/zh-cn/guides/thinking_mode
CLI Type
Codex CLI
Model Name
DeepSeek v4 Series
LLM Client
Codex CLI
Request Information
{"error":{"message":"The reasoning_content in the thinking mode must be passed back to the API.","type":"invalid_request_error","param":null,"code":"invalid_request_error"}}
Expected behavior
正常调用工具
Screenshots

Is it a request payload issue?
If it's a request payload issue, you MUST know
Our team doesn't have any GODs or ORACLEs or MIND READERs. Please make sure to attach the request log or curl payload.
Describe the bug
使用 OpenAI 兼容格式提供商接入DeepSeek官方API.
然而, DeepSeek v4 系列模型要求必须在调用工具的轮次后回传
reasoning_content, 否则会400报错. 当前CPA版本未实现这一功能.见 https://api-docs.deepseek.com/zh-cn/guides/thinking_mode
CLI Type
Codex CLI
Model Name
DeepSeek v4 Series
LLM Client
Codex CLI
Request Information
{"error":{"message":"The
reasoning_contentin the thinking mode must be passed back to the API.","type":"invalid_request_error","param":null,"code":"invalid_request_error"}}Expected behavior
正常调用工具
Screenshots
