[GH-ISSUE #95] [Bug]: 非原生推理格式推理模型无法正常回复 #64

Open
opened 2026-02-27 01:56:03 +03:00 by kerem · 8 comments
Owner

Originally created by @yzlltyyh on GitHub (Mar 13, 2025).
Original GitHub issue: https://github.com/ErlichLiu/DeepClaude/issues/95

提交前确认

  • 我已经搜索过现有的 issues,包括已经 close 的 issue,确认没有重复报告同样的问题
  • 我已经阅读了文档,确认这是一个缺陷而不是使用问题
  • 我已经在最新版本中验证了这个问题仍然存在

发生了什么?

使用不支持原生推理格式的deepseek模型时,会输出几个字,然后就停下,推测是由于max_token参数导致的问题

Image

复现步骤

使用最新版deepclaude,使用不支持原生推理格式的deepseek作为推理模型。

Originally created by @yzlltyyh on GitHub (Mar 13, 2025). Original GitHub issue: https://github.com/ErlichLiu/DeepClaude/issues/95 ### 提交前确认 - [x] 我已经搜索过现有的 issues,包括已经 close 的 issue,确认没有重复报告同样的问题 - [x] 我已经阅读了文档,确认这是一个缺陷而不是使用问题 - [x] 我已经在最新版本中验证了这个问题仍然存在 ### 发生了什么? 使用不支持原生推理格式的deepseek模型时,会输出几个字,然后就停下,推测是由于max_token参数导致的问题 ![Image](https://github.com/user-attachments/assets/5f384397-a681-43dc-8834-0f69282be509) ### 复现步骤 使用最新版deepclaude,使用不支持原生推理格式的deepseek作为推理模型。
Author
Owner

@GowayLee commented on GitHub (Mar 14, 2025):

但是deepclaude并在发送请求时并没有设置max_tokens参数. 会不会是魔塔的api问题, 尝试使用一下其他供应商的看看

<!-- gh-comment-id:2723120206 --> @GowayLee commented on GitHub (Mar 14, 2025): 但是deepclaude并在发送请求时并没有设置max_tokens参数. 会不会是魔塔的api问题, 尝试使用一下其他供应商的看看
Author
Owner

@yzlltyyh commented on GitHub (Mar 15, 2025):

使用的是提供商nebius的r1,测试了kluster的也不行🥲测试回退到上一个版本可以正常使用。

<!-- gh-comment-id:2726245230 --> @yzlltyyh commented on GitHub (Mar 15, 2025): 使用的是提供商nebius的r1,测试了kluster的也不行🥲测试回退到上一个版本可以正常使用。
Author
Owner

@yzlltyyh commented on GitHub (Mar 15, 2025):

Image
看了看,应该是有设置max_token的耶

<!-- gh-comment-id:2726316762 --> @yzlltyyh commented on GitHub (Mar 15, 2025): ![Image](https://github.com/user-attachments/assets/b6c91e7c-ab45-483f-85c6-aaae1c050f70) 看了看,应该是有设置max_token的耶
Author
Owner

@GowayLee commented on GitHub (Mar 16, 2025):

确实......我们会再检查一下代码

<!-- gh-comment-id:2727109374 --> @GowayLee commented on GitHub (Mar 16, 2025): 确实......我们会再检查一下代码
Author
Owner

@GowayLee commented on GitHub (Mar 16, 2025):

#64

<!-- gh-comment-id:2727119508 --> @GowayLee commented on GitHub (Mar 16, 2025): #64
Author
Owner

@igeekbb commented on GitHub (Mar 16, 2025):

使用的是提供商nebius的r1,测试了kluster的也不行🥲测试回退到上一个版本可以正常使用。

一样

<!-- gh-comment-id:2727456327 --> @igeekbb commented on GitHub (Mar 16, 2025): > 使用的是提供商nebius的r1,测试了kluster的也不行🥲测试回退到上一个版本可以正常使用。 一样
Author
Owner

@zzzh3ng commented on GitHub (Mar 16, 2025):

把/DeepClaude/app/clients/deepseek_client.py里面的max_tokens去掉,可以正常工作了。

<!-- gh-comment-id:2727610792 --> @zzzh3ng commented on GitHub (Mar 16, 2025): 把/DeepClaude/app/clients/deepseek_client.py里面的max_tokens去掉,可以正常工作了。
Author
Owner

@minghuayao81 commented on GitHub (Mar 17, 2025):

把/DeepClaude/app/clients/deepseek_client.py里面的max_tokens去掉,可以正常工作了。

是的。
我测试的环境是dp+gemini。

<!-- gh-comment-id:2727810755 --> @minghuayao81 commented on GitHub (Mar 17, 2025): > 把/DeepClaude/app/clients/deepseek_client.py里面的max_tokens去掉,可以正常工作了。 是的。 我测试的环境是dp+gemini。
Sign in to join this conversation.
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
starred/DeepClaude#64
No description provided.