Fix not using flash for next speaker check (#4016)

This commit is contained in:
Sandy Tao
2025-07-12 22:12:47 -07:00
committed by GitHub
parent 44ef0408f3
commit b29c02dd34
2 changed files with 21 additions and 0 deletions

View File

@@ -5,6 +5,7 @@
*/
import { Content, SchemaUnion, Type } from '@google/genai';
import { DEFAULT_GEMINI_FLASH_MODEL } from '../config/models.js';
import { GeminiClient } from '../core/client.js';
import { GeminiChat } from '../core/geminiChat.js';
import { isFunctionResponse } from './messageInspectors.js';
@@ -131,6 +132,7 @@ export async function checkNextSpeaker(
contents,
RESPONSE_SCHEMA,
abortSignal,
DEFAULT_GEMINI_FLASH_MODEL,
)) as unknown as NextSpeakerResponse;
if (