fix: 移除 rag-chat 调试日志中的 rawText 引用 (GatewayResponse 无此字段)
All checks were successful
Deploy API Server / build-and-deploy (push) Successful in 41s

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
wangdl 2026-06-06 14:04:17 +08:00
parent ce43256690
commit 07f2786ab9

View File

@ -75,7 +75,7 @@ export class RagChatService {
messages, messages,
maxTokens: 2048, maxTokens: 2048,
}); });
this.logger.log(`AI Gateway response: parsed=${!!resp.parsed}, rawLen=${resp.rawText?.length ?? 0}`); this.logger.log(`AI Gateway response: parsed=${!!resp.parsed}`);
reply = resp.parsed?.answer ?? String(resp.parsed?.content ?? '抱歉AI 暂时无法生成回答。'); reply = resp.parsed?.answer ?? String(resp.parsed?.content ?? '抱歉AI 暂时无法生成回答。');
citations = context.citations; citations = context.citations;
} catch (err: any) { } catch (err: any) {