Add multilingual support in CustomizeView and update speech configuration handling in gemini
This commit is contained in:
+3
-1
@@ -732,7 +732,9 @@ async function initializeGeminiSession(
|
||||
inputAudioTranscription: {},
|
||||
tools: enabledTools,
|
||||
contextWindowCompression: { slidingWindow: {} },
|
||||
speechConfig: { languageCode: language },
|
||||
...(language && language !== "auto"
|
||||
? { speechConfig: { languageCode: language } }
|
||||
: {}),
|
||||
systemInstruction: {
|
||||
parts: [{ text: systemPrompt }],
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user