使用 deepseek r1 作为【话题命名模型】时,话题名称会出现深度思考的信息。 #5772
-
📦 部署环境Other, Docker 📌 软件版本1.51.1 💻 系统环境macOS 🌐 浏览器Edge 🐛 问题描述使用 deepseek r1 作为【话题命名模型】时,话题名称会出现深度思考的信息。 📷 复现步骤
如下:
🚦 期望结果期望排除深度思考标签,直接显示结果。 如下:
📝 补充信息No response |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments
-
Thank you for raising an issue. We will investigate into the matter and get back to you as soon as possible. |
Beta Was this translation helpful? Give feedback.
-
📦 deployment environmentOther, Docker 📌 Software version1.51.1 💻 System environmentmacos 🌐 browserEDGE 🐛 Problem descriptionWhen using deepseek r1 as the [Topic Naming Model], deep thinking information will appear on the topic name. 📷 Reapped steps
as follows:
🚦 expectation resultExpect to exclude deep thinking labels and directly display the results. as follows:
📝 Supplement informationNo response |
Beta Was this translation helpful? Give feedback.
-
@gavinliu Hello! I'm here to help you with your software issue. If you need assistance with bugs, questions, or contributions, just let me know! The issue you're experiencing is related to the inclusion of To address this, you can use the export const normalizeThinkTags = (input: string) => {
return (
input
.replaceAll(/([^\n])\s*<think>/g, '$1\n\n<think>')
.replaceAll(/<think>\s*([^\n])/g, '<think>\n\n$1')
.replaceAll(/([^\n])\s*<\/think>/g, '$1\n\n</think>')
.replaceAll(/<\/think>\s*([^\n])/g, '</think>\n\n$1')
.replaceAll(/\n{3,}/g, '\n\n')
);
}; You can adapt this function to remove the To continue talking to Dosu, mention @dosu. Help Dosu learn! Give it feedback: Great Response | Irrelevant Answer | Incorrect Sources | Too Verbose | Hallucination | Other |
Beta Was this translation helpful? Give feedback.
-
如果你用 DS 官方或者硅基流动的 R1 模型,不会出现这个问题。你用了例如 ollama 部署的模型才会有这个问题。 暂时不考虑移除这类 think 标签的内容,建议不要用 Ollama 等部署的深度思考的模型作为话题命名模型。 |
Beta Was this translation helpful? Give feedback.
如果你用 DS 官方或者硅基流动的 R1 模型,不会出现这个问题。你用了例如 ollama 部署的模型才会有这个问题。
暂时不考虑移除这类 think 标签的内容,建议不要用 Ollama 等部署的深度思考的模型作为话题命名模型。