-
-
Notifications
You must be signed in to change notification settings - Fork 33
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
[Feature] 非官方 API 使用 Deepseek R1 模型时,隐藏 <think> 标签内容 #369
Comments
这种标签不是通用标准,ChatLuna 暂时不打算兼容。
或者: format_user_prompt: |-
# 当前时间
{time_UTC+8}
{weekday}
# 消息发送者
QQ 号: {sender_id}
群昵称: "{sender}"
# 消息内容
{prompt}
# 输出规范
<output> 将回复内容包裹在 xml 标记中。在一行内输出,不在标记后换行。output 标签是绝对不可以省略的!</output>
config:
postHandler:
censor: false
prefix: '<output>'
postfix: '</output>' |
试了下,本地模型它不太想遵循。。 然后我想着Regex会好一些,不过这个是不是还没有实现 chatluna/packages/core/src/utils/string.ts Line 114 in 20a9b1e
|
更好的方案是使用 censor 服务过滤 think 标签的内容,你可以看看 https://github.com/Hoshino-Yumetsuki/koishi-plugin-text-censor 。他这个支持正则过滤... |
bodyRegex 这个确实没实现,不过也没实现的打算 |
没有问题了,昨晚看到https://github.com/Hoshino-Yumetsuki/koishi-plugin-text-censor 项目更新了 试了一下成功了,感谢大佬,感谢Hoshino-Yumetsuki更新的过滤器😘 |
现在的
<think></think>
内容太长,在群里发送比较刷屏。是不是应该增加一个选项隐藏think内容?
支持编辑消息的平台或许可以显示成
已思考...s
更新:解决方案见 #369 (comment)
The text was updated successfully, but these errors were encountered: