refactor(voice): isolate gemini live provider core

This commit is contained in:
manjunath committed 2026-10-19 21:40:40 +05:30
commit 10916227cb
655 files changed
+45946 -26483

No files matched your search

+2 -14
View File
@@ -1,18 +1,6 @@
export const VOICE_PROVIDER_GUIDANCE =
'I can’t switch voice providers directly. Hover over the Voice panel and use the provider dropdown.';
export const HOST_VOICE_PROVIDER_GUIDANCE =
'I can’t switch voice providers directly. Provider selection is managed by this app.';
/** Host construction decides which controls exist; tool text cannot add one. */
export function voiceProviderGuidance({ providerDropdown = false } = {}) {
return providerDropdown === true
? VOICE_PROVIDER_GUIDANCE
: HOST_VOICE_PROVIDER_GUIDANCE;
}
export const VOICE_PROVIDERS = Object.freeze({
openai: Object.freeze({ label: 'OpenAI' }),
gemini: Object.freeze({ label: 'Gemini' }),
openai: Object.freeze({ label: 'OpenAI' }), // i18n-ignore: provider product name
gemini: Object.freeze({ label: 'Gemini' }), // i18n-ignore: provider product name
});
/** Optional providers require an explicit host opt-in and an available factory. */