Merge pull request #2041 from QwenLM/fix/reduce-streaming-log-output

fix(logging): reduce excessive streaming output in session history logs
This commit is contained in:
tanzhenxin 2026-03-02 17:41:25 +08:00 committed by GitHub
commit f6376d2e0b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -154,7 +154,6 @@ export class LoggingContentGenerator implements ContentGenerator {
response.modelVersion || req.model,
userPromptId,
response.usageMetadata,
JSON.stringify(response),
);
await this.logOpenAIInteraction(openaiRequest, response);
return response;
@ -219,7 +218,6 @@ export class LoggingContentGenerator implements ContentGenerator {
responses[0]?.modelVersion || model,
userPromptId,
lastUsageMetadata,
JSON.stringify(responses),
);
const consolidatedResponse =
this.consolidateGeminiResponsesForLogging(responses);