代码策略bug修复

This commit is contained in:
2026-11-18 11:07:24 +08:00
parent eade886d0e
commit 007b9896e3
22 changed files with 1119 additions and 972 deletions
+1 -1
View File
@@ -49,7 +49,7 @@ export const REQUEST_TIMEOUT = 300000
*
* 语义:**连续 60 秒一个字节都没到** = 连接已死(对端挂了 / 中间设备静默断开)。
* 必须远高于实测的分片节奏(20~45ms 一批,见 AGENTS.md §7),否则正常流会被误杀;
* 也**绝不能**当成总时长预算 —— 长工具调用链(模型思考 + 多轮 tool_calls)
* 也**绝不能**当成总时长预算 —— 长工具调用链(模型思考 + 多步 tool_calls)
* 合法地超过任何总时长,只有「完全无数据」才该判死。
*
* `REQUEST_TIMEOUT` 只覆盖到响应头到达为止(`sendChatRequest` 的 fetch 阶段),