From ca3df18d99ffe04baf9cd4b443c4600c9c8618d4 Mon Sep 17 00:00:00 2001 From: Enrico Ros Date: Tue, 27 May 2025 17:28:38 -0700 Subject: [PATCH] AIX: Gemini: also strip the system prompt - TTS only takes 1 message --- src/modules/llms/server/gemini/gemini.models.ts | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/modules/llms/server/gemini/gemini.models.ts b/src/modules/llms/server/gemini/gemini.models.ts index dd09927f9..90075a758 100644 --- a/src/modules/llms/server/gemini/gemini.models.ts +++ b/src/modules/llms/server/gemini/gemini.models.ts @@ -177,7 +177,8 @@ const _knownGeminiModels: ({ interfaces: [ LLM_IF_OAI_Chat, LLM_IF_OAI_Vision, LLM_IF_OAI_Fn, LLM_IF_OAI_Json, LLM_IF_Outputs_Audio, LLM_IF_Outputs_NoText, - LLM_IF_HOTFIX_NoStream, // generateContent, not streamGenerateContent?alt=sse + LLM_IF_HOTFIX_StripSys0, // TTS: no system instruction + LLM_IF_HOTFIX_NoStream, // TTS: no streaming - use generateContent instead ], benchmark: undefined, // TTS models are not benchmarkable hidden: true, // audio outputs are unavailable as of 2025-05-27 @@ -219,7 +220,8 @@ const _knownGeminiModels: ({ interfaces: [ LLM_IF_OAI_Chat, LLM_IF_OAI_Vision, LLM_IF_OAI_Fn, LLM_IF_OAI_Json, LLM_IF_Outputs_Audio, LLM_IF_Outputs_NoText, - LLM_IF_HOTFIX_NoStream, // generateContent, not streamGenerateContent?alt=sse + LLM_IF_HOTFIX_StripSys0, // TTS: no system instruction + LLM_IF_HOTFIX_NoStream, // TTS: no streaming - use generateContent instead ], benchmark: undefined, // TTS models are not benchmarkable hidden: true, // audio outputs are unavailable as of 2025-05-27