Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

兼容openrouter的思考字段 #793

Open
5 tasks done
xunxun1982 opened this issue Feb 26, 2025 · 7 comments
Open
5 tasks done

兼容openrouter的思考字段 #793

xunxun1982 opened this issue Feb 26, 2025 · 7 comments
Labels
bug Something isn't working

Comments

@xunxun1982
Copy link

例行检查

  • 我已确认目前没有类似 issue
  • 我已确认我已升级到最新版本
  • 我已完整查看过项目 README,尤其是常见问题部分
  • 我理解并愿意跟进此 issue,协助测试和提供反馈
  • 我理解并认可上述内容,并理解项目维护者精力有限,不遵循规则的 issue 可能会被无视或直接关闭

问题描述
openrouter的DeepseekR1在加入额外的body "include_reasoning": true时可以返回思维链 但是他放在了reason字段而不是reasoning_content中,这样使用thinking_to_content就会无效
复现步骤

预期结果
能正常识别reason
相关截图
如果没有的话,请删除此节。

@xunxun1982 xunxun1982 added the bug Something isn't working label Feb 26, 2025
@xiaoping378
Copy link

thinking_to_content对于dify中调用r1模型似乎也有问题

@morooi
Copy link

morooi commented Feb 26, 2025

附议

@Calcium-Ion
Copy link
Owner

挺无语的,一家一个格式。。

@xiaoping378
Copy link

xiaoping378 commented Feb 27, 2025

挺无语的,一家一个格式。。

这不就是new-api的价值所在么,以下是接dify-r1的效果

Image

@Calcium-Ion
Copy link
Owner

挺无语的,一家一个格式。。

这不就是new-api的价值所在么,以下是接dify-r1的效果

Image

你这个r1模型的供应商是谁

@xiaoping378
Copy link

挺无语的,一家一个格式。。

这不就是new-api的价值所在么,以下是接dify-r1的效果
Image

你这个r1模型的供应商是谁

是硅基流动的

@zhoujun681
Copy link

一样问题,Dify输出
<details style="color:gray;background-color: #f8f8f8;padding: 8px;border-radius: 4px;" open> <summary> Thinking... </summary> 好,用户发来了“你好啊”,看起来他是在和我打招呼。我需要友好地回应他的问候。

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

5 participants