[GH-ISSUE #100] [Bug] 模型输出末尾偶现无意义HTML/XML标签乱码(如 </h3>、</output>、</thinking>) #77

Closed
opened 2026-10-26 21:02:24 +00:00 by bsakaguchi · 1 comment
Owner

Originally created by @ciallo0721-cmd on GitHub (Jul 20, 2026).
Original GitHub issue: https://github.com/deepseek-ai/DeepSeek-LLM/issues/100

Description:

在正常对话过程中,DeepSeek模型有概率在回答的末尾附加无意义的HTML/XML标签类乱码内容,包括但不限于:

  • </h3> </h3> </h3> ...(大量重复)
  • </output>
  • </thinking>

这些标签与对话内容完全无关,不属于正常回答的一部分,影响了用户体验和输出内容的可用性(尤其是在需要复制粘贴完整回答的场景下)。

实际案例(含分享链接):

链接 说明
https://chat.deepseek.com/share/rf611wql0895p908hs thinking
https://chat.deepseek.com/share/3bufa5oi69oddl81pl /h3...
https://chat.deepseek.com/share/wsapo52g0qd3ytkgii /output

Expected Behavior:

模型应仅输出与用户问题相关的内容,末尾不应附加任何无关的HTML/XML标签或重复字符。

Actual Behavior:

模型在回答末尾随机附加无意义标签,例如:

  • </h3> 重复数十次
  • </output>
  • </thinking>

Environment:

  • 平台:DeepSeek 网页端
  • 模式:正常对话模式(非API调用)
  • 复现频率:偶发,非必现

该问题虽不涉及安全或隐私泄露,但会降低输出质量,影响用户对模型回答的信任度和可用性。建议将其纳入后续模型优化计划。


Discovered by: ciallo0721-cmd
Reported via: GitHub Issue

Originally created by @ciallo0721-cmd on GitHub (Jul 20, 2026). Original GitHub issue: https://github.com/deepseek-ai/DeepSeek-LLM/issues/100 **Description:** 在正常对话过程中,DeepSeek模型有概率在回答的末尾附加无意义的HTML/XML标签类乱码内容,包括但不限于: - `</h3> </h3> </h3> ...`(大量重复) - `</output>` - `</thinking>` 这些标签与对话内容完全无关,不属于正常回答的一部分,影响了用户体验和输出内容的可用性(尤其是在需要复制粘贴完整回答的场景下)。 **实际案例(含分享链接):** | 链接 | 说明 | |------|------| | https://chat.deepseek.com/share/rf611wql0895p908hs |thinking | | https://chat.deepseek.com/share/3bufa5oi69oddl81pl | /h3... | | https://chat.deepseek.com/share/wsapo52g0qd3ytkgii | /output | **Expected Behavior:** 模型应仅输出与用户问题相关的内容,末尾不应附加任何无关的HTML/XML标签或重复字符。 **Actual Behavior:** 模型在回答末尾随机附加无意义标签,例如: - `</h3>` 重复数十次 - `</output>` - `</thinking>` **Environment:** - 平台:DeepSeek 网页端 - 模式:正常对话模式(非API调用) - 复现频率:偶发,非必现 该问题虽不涉及安全或隐私泄露,但会降低输出质量,影响用户对模型回答的信任度和可用性。建议将其纳入后续模型优化计划。 --- **Discovered by:** ciallo0721-cmd **Reported via:** GitHub Issue
Author
Owner

@ciallo0721-cmd commented on GitHub (Jul 20, 2026):

Image Image
<!-- gh-comment-id:5021096926 --> @ciallo0721-cmd commented on GitHub (Jul 20, 2026): <img width="1920" height="1040" alt="Image" src="https://github.com/user-attachments/assets/c466abc4-90f9-4903-bfc3-e2beb70ff405" /> <img width="1920" height="1040" alt="Image" src="https://github.com/user-attachments/assets/79011656-c24a-4b59-af98-364106e2d9a7" />
Sign in to join this conversation.
No labels
bug
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
deepseek-ai/DeepSeek-LLM#77
No description provided.