mirror of
https://gitee.com/qqtt-ah/ecom-dmb.git
synced 2026-11-24 17:49:19 +08:00
fix: store 证伪时优先无状态 Responses,失败再降 Completions
This commit is contained in:
@@ -376,8 +376,7 @@ apps/agent/
|
||||
|
||||
1. **Responses + `store=true`**(语义证实后;有会话链则只发增量 + `previous_response_id`)
|
||||
2. store 未知:Responses + `store=true` + **Mongo 全量历史**,成功后再做语义探测
|
||||
3. **store 证伪**(如 DeepSeek 返回 id 但不持久):**一律 Completions + Mongo 全量历史**
|
||||
(LangChain 虽可把多轮打进 Responses `input`,但无状态兼容端常不可靠)
|
||||
3. **store 证伪**:先 **无状态 Responses + Mongo 全量**,接口失败再 **Completions + Mongo 全量**
|
||||
4. Responses 端点不可用 → Completions
|
||||
|
||||
成功后写入能力缓存。**`store=true` 认定**:独立语义探测——先让模型记住密钥,再仅用 `previous_response_id`(不带历史)追问;答对才记 true。未证实前禁止只发增量。
|
||||
|
||||
Reference in New Issue
Block a user