Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

🐞 反馈问题:使用DeepSeek r1无法隐藏思考过程 #806

Open
5 of 6 tasks
tianfeiwei opened this issue Feb 2, 2025 · 5 comments
Open
5 of 6 tasks

🐞 反馈问题:使用DeepSeek r1无法隐藏思考过程 #806

tianfeiwei opened this issue Feb 2, 2025 · 5 comments
Assignees
Labels
bug Something isn't working fixed in next release The issue will be closed once next release is available

Comments

@tianfeiwei
Copy link

请先确认以下事项:

  • 请务必查看 常见问题
  • 已仔细阅读了 README
  • issues 页面搜索过问题(包括已关闭的 issue),但未能找到解决方法
  • Easydict 已升级到 最新版本
  • 我理解并认可上述内容,并理解项目维护者精力有限,不遵循规则的 issue 可能会被无视或直接关闭

问题描述

在使用deepseek r1模型翻译的时候,在翻译的最上方会有

<think> ... </think>

的输出格式。如何只输出翻译结果而不显示思考过程?

该问题是否可以稳定重现?

可重现

重现步骤

接入deepseek api去翻译一段文字,就会看到r1的思考过程

截图

Image

运行日志(zip 文件)

Easydict log 2025-02-01 23-40-19-245.zip

期望结果

只输出翻译结果,隐藏思考过程

解决方案(可选)

No response

设备型号 && 系统版本

Apple M1 Max, macOS 15.3

是否愿意提交 PR 解决该问题?

  • 我愿意提交 PR 来解决该问题
@tianfeiwei tianfeiwei added the bug Something isn't working label Feb 2, 2025
Copy link

github-actions bot commented Feb 2, 2025

Hello tianfeiwei, Thank you for your first issue contribution 🎉

@tisfeng
Copy link
Owner

tisfeng commented Feb 4, 2025

这个问题不太好处理。

如果只是单纯隐藏思考过程,也就是忽略 <think> ... </think> 之间的内容,若思考过程很长,这可能导致应用前面会看起来像是发呆,一直要等思考结束才显示真正结果。

显示思考过程也不合适,Easydict 窗口就这么大,显示不了太多非核心内容。

@tianfeiwei
Copy link
Author

tianfeiwei commented Feb 4, 2025

用r1翻译反应还是比较快的,截图那个翻译差不多就1秒左右。如果可以加个findRegex或者TextSplit然后用户可以自己填写1[\5|5]*</think>(?![\s\S]*</think>)来选择是否输出思考过程就很好。

@tisfeng
Copy link
Owner

tisfeng commented Feb 7, 2025

行,我尝试一下。

@boomker
Copy link

boomker commented Feb 8, 2025

这个问题不太好处理。

如果只是单纯隐藏思考过程,也就是忽略 <think> ... </think> 之间的内容,若思考过程很长,这可能导致应用前面会看起来像是发呆,一直要等思考结束才显示真正结果。

显示思考过程也不合适,Easydict 窗口就这么大,显示不了太多非核心内容。


思考过程可以让用户决定是否显示

@tisfeng tisfeng self-assigned this Feb 10, 2025
@tisfeng tisfeng added the fixed in next release The issue will be closed once next release is available label Feb 10, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working fixed in next release The issue will be closed once next release is available
Projects
None yet
Development

No branches or pull requests

3 participants