We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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模型翻译的时候,在翻译的最上方会有
<think> ... </think>
的输出格式。如何只输出翻译结果而不显示思考过程?
可重现
接入deepseek api去翻译一段文字,就会看到r1的思考过程
Easydict log 2025-02-01 23-40-19-245.zip
只输出翻译结果,隐藏思考过程
No response
Apple M1 Max, macOS 15.3
The text was updated successfully, but these errors were encountered:
Hello tianfeiwei, Thank you for your first issue contribution 🎉
Sorry, something went wrong.
这个问题不太好处理。
如果只是单纯隐藏思考过程,也就是忽略 <think> ... </think> 之间的内容,若思考过程很长,这可能导致应用前面会看起来像是发呆,一直要等思考结束才显示真正结果。
显示思考过程也不合适,Easydict 窗口就这么大,显示不了太多非核心内容。
用r1翻译反应还是比较快的,截图那个翻译差不多就1秒左右。如果可以加个findRegex或者TextSplit然后用户可以自己填写1[\5|5]*</think>(?![\s\S]*</think>)来选择是否输出思考过程就很好。
1[\5|5]*</think>(?![\s\S]*</think>)
行,我尝试一下。
这个问题不太好处理。 如果只是单纯隐藏思考过程,也就是忽略 <think> ... </think> 之间的内容,若思考过程很长,这可能导致应用前面会看起来像是发呆,一直要等思考结束才显示真正结果。 显示思考过程也不合适,Easydict 窗口就这么大,显示不了太多非核心内容。
思考过程可以让用户决定是否显示
tisfeng
No branches or pull requests
请先确认以下事项:
问题描述
在使用deepseek r1模型翻译的时候,在翻译的最上方会有
的输出格式。如何只输出翻译结果而不显示思考过程?
该问题是否可以稳定重现?
可重现
重现步骤
接入deepseek api去翻译一段文字,就会看到r1的思考过程
截图
运行日志(zip 文件)
Easydict log 2025-02-01 23-40-19-245.zip
期望结果
只输出翻译结果,隐藏思考过程
解决方案(可选)
No response
设备型号 && 系统版本
Apple M1 Max, macOS 15.3
是否愿意提交 PR 解决该问题?
The text was updated successfully, but these errors were encountered: