fix(ai): Ask P0 禁 CoT、可澄清、禁 UPDATE_TIME 终答
CI / Go server (push) Canceled after 0s
CI / Desktop UI (push) Canceled after 0s
CI / Desktop (Tauri) cargo check (push) Canceled after 0s

prompt 禁止推理外露与编造列;信息不足允许一句澄清。
新增 SanitizeAssistantContent 剥回复中的推理草稿;业务「最近 N 天」不得默认用 information_schema.UPDATE_TIME。
This commit is contained in:
logan committed 2026-10-26 23:03:03 +08:00
1 parent dc7089857b
commit 4c68539db6
5 files changed
+154 -3

No files matched your search

+1
View File
@@ -191,6 +191,7 @@ func (p *RemoteProvider) Complete(ctx context.Context, req ChatReq) (ChatRes, er
if err != nil {
return ChatRes{}, err
}
content = SanitizeAssistantContent(content)
return ChatRes{Content: content, SQL: extractSQL(content)}, nil
}