fix(ai): Ask P0 禁 CoT、可澄清、禁 UPDATE_TIME 终答
prompt 禁止推理外露与编造列;信息不足允许一句澄清。 新增 SanitizeAssistantContent 剥回复中的推理草稿;业务「最近 N 天」不得默认用 information_schema.UPDATE_TIME。
This commit is contained in:
1 parent
dc7089857b
commit
4c68539db6
5 files changed
+154
-3
No files matched your search
@@ -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
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user