This commit is contained in:
Gemini Nexus Bot committed 2026-04-22 00:09:29 -03:00
1 parent faabf7ba7a
commit 0454aecf70
36 files changed
+719 -227

No files matched your search

+2 -2
View File
@@ -53,7 +53,7 @@ export class StreamingState {
return `event: ${eventType}\ndata: ${JSON.stringify(data)}\n\n`;
}
public emitMessageStart(rawJson: any): string {
public emitMessageStart(rawJson: any, modelName?: string): string {
if (this.messageStartSent) return '';
const usageMeta = rawJson.usageMetadata;
@@ -69,7 +69,7 @@ export class StreamingState {
type: 'message',
role: 'assistant',
content: [],
model: rawJson.modelVersion || '',
model: rawJson.modelVersion || modelName || '',
stop_reason: null,
stop_sequence: null,
usage: usage,