mirror of
https://github.com/deepseek-ai/awesome-deepseek-agent.git
synced 2026-11-05 01:07:37 +00:00
[GH-ISSUE #51] Cursor接入deepseek v4-pro会有问题 #17
Labels
No labels
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
deepseek-ai/awesome-deepseek-agent#17
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @pfchu on GitHub (May 2, 2026).
Original GitHub issue: https://github.com/deepseek-ai/awesome-deepseek-agent/issues/51
Cursor接入deepseek v4-pro使用的时候会提示 Provider returned error: {"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"}},
@FloaJa commented on GitHub (May 6, 2026):
遇到了同样问题
@Angela459 commented on GitHub (May 6, 2026):
可以看看这个项目,亲测能用
https://github.com/yxlao/deepseek-cursor-proxy
@tianhao8687 commented on GitHub (Aug 17, 2026):
这个报错的根因可以确定为“客户端丢失了推理状态”,不是模型名或余额问题。DeepSeek 当前的思考模式文档明确要求:只要某轮发生了工具调用,该轮 assistant 返回的
reasoning_content就必须在后续请求中完整回传;否则服务端会返回这个 400。Cursor 的通用 OpenAI-compatible 接入如果只保留
content、丢弃reasoning_content,仅修改 Base URL 或模型名无法修好。可行方案有三种:reasoning_content的适配层;适配层需要保留完整的 assistant 消息(
reasoning_content、content、tool_calls),再接上对应的 tool result。不要翻译、摘要或拼接改写reasoning_content,必须原样回传。若关闭 thinking 后不再报错,基本就能确认是这一兼容问题。