Repository navigation
[Bug] deepseek-flash:content 为空,最终答复出现在 reasoning_content #8553
Vexel-coder
started this conversation in
General
Replies: 1 comment
补充:一条可量化的判据 + 对照实验(原作者补充,同一问题,不另开帖) 关键发现:
|
| 时间 (UTC) | output | reasoning | stopReason | rawStopReason |
|---|---|---|---|---|
| 04:25:37 | 566 | 566 | stop | stop |
| 04:34:59 | 1638 | 1638 | stop | stop |
| 04:36:26 | 2720 | 2720 | stop | stop |
output 与 reasoning 完全相等 —— 本轮没有任何非 reasoning 的输出 token:正文 0 token,tool_calls 0 token。
对照组:同一天、同一会话、同一模型的正常工具调用轮次
| 时间 (UTC) | output | reasoning | 差值 | stopReason |
|---|---|---|---|---|
| 04:43:38 | 1104 | 941 | +163 | toolUse |
差值 163 token 即工具调用的参数(pattern + path)。
这组对照排除了客户端解析丢失
- 工具调用参数必然占用 output token;
- 失败轮次
output == reasoning,没有一个 token 留给 tool_calls; - 因此 tool_calls 从未在服务端生成,不是客户端解析或流式拼接丢失。
症状的另一面:行动意图被当作已完成
失败轮次的 reasoning 尾部(原样摘录,已脱敏):
直接 grep ✓
**执行 grep ✓**
**内容**:pattern: ...
**执行 ✓**
**好。** 我不猜 —— 直接去源码里找退出方式
模型在 reasoning 中写下「执行 grep ✓」这类行动意图,随后以 stop 结束 —— 既无正文,也无真正的 tool_calls。
这看起来不是「忘记调用工具」,而是把「决定要做」当作「已经做了」:若模型知道尚未调用,本应生成 tool_calls(或以 tool_use 结束),但它返回了 stop。
用户可感知的影响
这一轮完全空白:既没有回复,也没有任何动作。本轮应当执行的工具调用彻底丢失,且用户需要重新发起。
已观察到的规模:47 个会话文件中,符合上述判据的实例 19 处;时间跨度 2026-09-27 ~ 2026-10-02。
想请贵方确认的一个方向
当 reasoning 长度接近或占满 output 预算时,模型是否会跳过 content 生成?
如果是,是否考虑:
- 服务端对 reasoning 占 output 的比例设上限;
- 或在 reasoning 结束后强制生成 content 段;
- 或至少在
finish_reason上区分「reasoning 占满导致的空 content」与普通stop,便于客户端识别并重试。
客户端侧(pi-coding-agent)已能检测到这个矛盾状态(stop + 无 text + 无 tool_calls),重试可恢复,但这只能治标。
感谢。
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
摘要
使用
deepseek-flash(thinking 模式)时,模型在应当输出最终答复的轮次里:message.content为空reasoning_content中客户端侧表现:这一轮对话完全空白。
关键点:这不是「模型想完了没说」,而是本该输出给用户的成稿答复被生成进了 reasoning 字段。
判据
assistant消息需同时满足以下条件才计入:thinking(reasoning)块text块tool_callsuser消息或会话结束对照组:正常的工具调用轮次同样「无 text」,但必定含 tool_calls,且其后跟工具结果消息。本报告实例两者都不满足。
统计
最近 8 个会话文件中,符合判据的实例 19 处:
deepseek-flash会话另有一个独立证据:用户 8 次抱怨「回复是空的」,对应的 assistant 消息 100% 是同一结构(
['thinking']+ text 长度 0)。样本(已脱敏)
reasoning_content 开头:
reasoning_content 结尾:
判读:内容含 markdown 标题、
✅勾选列表、面向读者的措辞,是一条成稿答复。结尾以「写。」这种「准备输出正文」的自述结束 —— 模型预期下一步是产出 content,
但 content 字段从未被填充。
影响
content,可能中途停止或空转reasoning_content兜底与已知报告的关系
社区已有若干
reasoning_content相关报告:reasoning_content+tool_calls→ HTTP 400本报告补充一个不同的子情形:
这可能是同一底层问题的另一种表现,也可能是独立问题 —— 交由官方判断。
期望回复
content与reasoning_content的分配是否受特定条件影响(工具调用后的首个总结轮?长上下文?thinking 预算?)环境
deepseek-flash(providerdeepseek)如需要,可提供判定脚本、完整统计口径,或更多脱敏样本。
All reactions