mirror of
https://gitee.com/qqtt-ah/ecom-dmb.git
synced 2026-11-25 05:49:20 +08:00
fix: store 证伪时优先无状态 Responses,失败再降 Completions
This commit is contained in:
@@ -34,8 +34,7 @@ def plan_protocol_attempts(
|
||||
|
||||
- store 已证实:Responses+store,有链则增量续聊
|
||||
- store 未知:Responses+store + **Mongo 全量**,成功后再语义探测
|
||||
- store 证伪:走 **Completions + Mongo 全量**
|
||||
(DeepSeek 等无状态 Responses 会返回 id,但多轮 input 不可靠)
|
||||
- store 证伪:先 **无状态 Responses + Mongo 全量**,失败再 **Completions**
|
||||
- Responses 不可用:Completions
|
||||
"""
|
||||
style = normalize_api_style(api_style)
|
||||
@@ -47,7 +46,9 @@ def plan_protocol_attempts(
|
||||
attempts: list[ProtocolAttempt] = []
|
||||
|
||||
if cap.store is False:
|
||||
# 无真实 store:一律 Completions + Mongo 全量(DeepSeek Responses 多轮不可靠)
|
||||
# 无真实 store:无状态 Responses(全量历史)→ Completions
|
||||
if cap.responses is not False:
|
||||
attempts.append(ProtocolAttempt(True, False, False))
|
||||
attempts.append(ProtocolAttempt(False, False, False))
|
||||
return _dedupe(attempts)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user