Add multilingual support in CustomizeView and update speech configuration handling in gemini

This commit is contained in:
Илья Глазунов
2026-02-15 04:00:09 +03:00
parent 4cf48ee0af
commit 1b74968006
2 changed files with 8 additions and 2 deletions
+3 -1
View File
@@ -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 }],
},