[GH-ISSUE #85] deepseek-v4-pro接入cursor后直接报错,有什么办法解决这个问题啊? #29

Open
opened 2026-10-26 09:43:57 +00:00 by bsakaguchi · 3 comments
Owner

Originally created by @BBS2013 on GitHub (May 9, 2026).
Original GitHub issue: https://github.com/deepseek-ai/awesome-deepseek-agent/issues/85

Originally created by @BBS2013 on GitHub (May 9, 2026). Original GitHub issue: https://github.com/deepseek-ai/awesome-deepseek-agent/issues/85
Author
Owner

@BBS2013 commented on GitHub (May 9, 2026):

HTTP 400
{"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"}}

<!-- gh-comment-id:4410913997 --> @BBS2013 commented on GitHub (May 9, 2026): HTTP 400 {"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"}}
Author
Owner

@Angela459 commented on GitHub (May 9, 2026):

可以看看这个#61
项目链接在这儿https://github.com/yxlao/deepseek-cursor-proxy

<!-- gh-comment-id:4411379756 --> @Angela459 commented on GitHub (May 9, 2026): 可以看看这个#61 项目链接在这儿https://github.com/yxlao/deepseek-cursor-proxy
Author
Owner

@BenedictKing commented on GitHub (May 29, 2026):

这个错误的根因是 DeepSeek 的 API 要求开启 thinking 模式后,后续请求必须把上一轮的 reasoning_content 完整回传,否则返回 400。

CCX的 Claude Messages 渠道专门处理了这个问题 —— 支持 reasoning_content ↔ Claude thinking 内容块的双向转换,确保跨轮次的推理内容正确透传。

不过需要注意,Cursor 使用的是 OpenAI Chat Completions 格式,CCX 的 /v1/chat/completions 透传端点可以直接对接 Cursor,由 CCX 负责与 DeepSeek 通信。如果 DeepSeek 侧对 reasoning_content 的处理有兼容性问题,CCX 的协议层可以在转发前做归一化。

配置方式:

# 在 Cursor 设置中:
# Base URL: http://localhost:3000/v1
# API Key: your-ccx-proxy-key

集成指南:docs/ccx.md

<!-- gh-comment-id:4580724257 --> @BenedictKing commented on GitHub (May 29, 2026): 这个错误的根因是 DeepSeek 的 API 要求开启 thinking 模式后,后续请求必须把上一轮的 `reasoning_content` 完整回传,否则返回 400。 [**CCX**](https://github.com/BenedictKing/ccx)的 Claude Messages 渠道专门处理了这个问题 —— 支持 `reasoning_content` ↔ Claude `thinking` 内容块的双向转换,确保跨轮次的推理内容正确透传。 不过需要注意,Cursor 使用的是 OpenAI Chat Completions 格式,CCX 的 `/v1/chat/completions` 透传端点可以直接对接 Cursor,由 CCX 负责与 DeepSeek 通信。如果 DeepSeek 侧对 `reasoning_content` 的处理有兼容性问题,CCX 的协议层可以在转发前做归一化。 配置方式: ```bash # 在 Cursor 设置中: # Base URL: http://localhost:3000/v1 # API Key: your-ccx-proxy-key ``` 集成指南:[docs/ccx.md](https://github.com/deepseek-ai/awesome-deepseek-agent/blob/main/docs/ccx.md)
Sign in to join this conversation.
No labels
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
deepseek-ai/awesome-deepseek-agent#29
No description provided.