mirror of
https://github.com/ErlichLiu/DeepClaude.git
synced 2026-04-25 05:05:57 +03:00
[GH-ISSUE #35] 使用最新分支时deepseek使用AiHubMix供应商无法获取推理内容 #24
Labels
No labels
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
pull-request
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/DeepClaude#24
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 @wydyydlhb1990 on GitHub (Feb 17, 2025).
Original GitHub issue: https://github.com/ErlichLiu/DeepClaude/issues/35
将下面env 参数设成false也没有返回推理内容
IS_ORIGIN_REASONING=false
我是用的Cherry Studio, 配置一切都OK没有报错
@GowayLee commented on GitHub (Feb 17, 2025):
有可能是模型本身就没有思考.
尝试抓包一下响应流看看是不是:
@wydyydlhb1990 commented on GitHub (Feb 17, 2025):
我把抓包内容丢给了Claude,回答如下
Based on the packet capture, here's what's happening:
Your request to the server is successful and being processed (200 OK response)
The server is streaming back a response in chunks
There's an error message in Chinese: "获取推理内容失败" (Failed to get reasoning content)
Despite the error, Claude still manages to provide a fallback response about testing
The issue seems to be with the server's reasoning/inference system rather than the network connection or protocol implementation. The server is functioning and communicating properly, but there appears to be an internal error when trying to generate the content.
To fix this, you should:
Check your server's model initialization and inference pipeline
Verify any required model files or resources are properly loaded
Look at your server logs for more detailed error messages
Make sure you have sufficient memory/resources for model inference
我试着在Cherry Studio里调用aihubmix-DeepSeek-R1,回应没有任何问题,所以我在想是不是deepclaude现有的env setup 不适用处理别的非官方DS
@ErlichLiu commented on GitHub (Feb 18, 2025):
@wydyydlhb1990 补充一点细节呢,你两段都用的 aihubmix 的嘛?然后模型名称里也是按照 aihubmix 的要求来填写的嘛。放一点你的 .env 的配置(不要放真实的 apikey)以及 aihubmax 的的文档看看。
@wydyydlhb1990 commented on GitHub (Feb 18, 2025):
是的,配置应该是没有问题
env.txt
aihubmax 文档 -》 https://doc.aihubmix.com/coding/如何调用本站非OpenAI模型
@DeepLifeStudio commented on GitHub (Feb 18, 2025):
加一 我也是一样的问题
如果是在dify中,它不会验证通过
@DeepLifeStudio commented on GitHub (Feb 18, 2025):
有时也会报DeepClaude - ERROR - 处理 Claude 流时发生错误: list index out of range错误
@ErlichLiu commented on GitHub (Feb 18, 2025):
@wydyydlhb1990 @DeepLifeStudio 两位加一下我的微信,我远程看看呢。微信:geekthings
@GowayLee commented on GitHub (Feb 18, 2025):
I have collected response examples of different types of
Deepseek R1model inAiHubMixProblem Reasoning
1.
deepseek-reasonerDeepSeek-R1Using original reasoning format (field
reasoning_contentand fieldcontent), can output reasoning content stably. Should work well with DeepCalude2.
aihubmix-DeepSeek-R1deepseek-ai/DeepSeek-R1Using old, unoriginal reasoning format (

<think></think>tags). May skip reasoning for some prompts. The official doc also mentions this point: users may need to "ask the model to perform reasoning"The sick output looks like this, there has no content between

<think>and</think>This causes uncaught reasoning content problem in DeepClaude.
Solution
1. Change to use original models like
deepseek-reasonerDeepSeek-R12. Add extra prompts in DeepClaude side to force the model to perform reasoning, like what is said in official doc. And use an environment variable
FORCE_REASONINGto control whether enable this feature or not. However, due to randomness, this method may still fail.Personally, I am for the second solution, this feature can make more R1 models perform well on DeepClaude.
@DeepLifeStudio commented on GitHub (Feb 18, 2025):
我使用的模型是DeepSeek-R1,用的就是原始格式,DeepClaude在API调试工具是可以正常输出结果的,但是如果用在CherryStudio偶尔是不能正常输出content内容的,哪怕是正常输出内容也会报2025-02-18 07:33:15 - DeepClaude - ERROR - 处理 Claude 流时发生错误: list index out of range错误,对于Dify更是无法验证通过会报如下错误:Credentials validation failed: JSON decode error
@GowayLee commented on GitHub (Feb 18, 2025):
I tested
DeepSeek-R1model onAiHubMix, it works well in DeepClaudeAs for this issue, I will do further check.
@DeepLifeStudio commented on GitHub (Feb 18, 2025):
请问你是否能在dify的设置里面也测试一下?
@GowayLee commented on GitHub (Feb 18, 2025):
可以提供dify中出现错误的详情吗,前面的讨论记录有些混乱,不好确定问题😢
@DeepLifeStudio commented on GitHub (Feb 18, 2025):
dify的问题出现在验证过程中,报错为Credentials validation failed: JSON decode error
@akakenle commented on GitHub (Feb 18, 2025):
Aihubmix对claude模型支持Claude原始api接口,推荐这样设置;本地实测共可以完美运行
@DeepLifeStudio commented on GitHub (Feb 18, 2025):
已解决 对于aihubmix
API URL要用anthropic格式,而不是兼容openai的格式,尽管它同样也支持openai格式,但是在deepclaude是例外。
尽管如此它还是不能通过dify的验证,考虑下是否是deepclaude的API格式问题
@wydyydlhb1990 commented on GitHub (Feb 18, 2025):
我把env 改成和你一样
但还是有问题
@akakenle commented on GitHub (Feb 19, 2025):
你这个日志显示已经成功了,只是没有获取到deepseek模型返回到推理内容了;这个是因为现在deepseek模型的api很不稳定;能单独返回推理字段的在aihubmix上有这两个:deepseek-ai/DeepSeek-R1 和deepseek-reasoner ;但是都不是很稳定;
@GowayLee commented on GitHub (Feb 19, 2025):
@wydyydlhb1990 日志显示你使用的仍然是非原生推理格式返回的
aihubmix-DeepSeek-R1, 该模型对于一些prompt情景不会进行推理.尝试重新设置env, 确保使用了正确的模型.
@wydyydlhb1990 commented on GitHub (Feb 20, 2025):
谢谢已解决,重新设置env还不够,得再重设程序。