debug: rag-chat 日志输出 AI parsed 结构
All checks were successful
Deploy API Server / build-and-deploy (push) Successful in 43s
All checks were successful
Deploy API Server / build-and-deploy (push) Successful in 43s
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
parent
3d8246cf6e
commit
69bcd07a0f
@ -76,7 +76,7 @@ export class RagChatService {
|
||||
messages,
|
||||
maxTokens: 2048,
|
||||
});
|
||||
this.logger.log(`AI Gateway response: parsed=${!!resp.parsed}`);
|
||||
this.logger.log(`AI Gateway response: parsed=${!!resp.parsed}, keys=${resp.parsed ? Object.keys(resp.parsed).join(',') : 'null'}, raw=${JSON.stringify(resp.parsed).substring(0, 300)}`);
|
||||
reply = resp.parsed?.answer ?? String(resp.parsed?.content ?? '抱歉,AI 暂时无法生成回答。');
|
||||
citations = context.citations;
|
||||
} catch (err: any) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user