From c0f56767f5fad296aa6ce0dc0c60aea194933a14 Mon Sep 17 00:00:00 2001 From: Timothy Jaeryang Baek Date: Wed, 14 Oct 2026 19:44:26 +0400 Subject: [PATCH] refac --- backend/open_webui/config.py | 2 +- src/lib/components/chat/Chat.svelte | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/backend/open_webui/config.py b/backend/open_webui/config.py index cdad7d5859..d3f77d3472 100644 --- a/backend/open_webui/config.py +++ b/backend/open_webui/config.py @@ -2426,7 +2426,7 @@ VOICE_MODE_PROMPT_TEMPLATE = os.getenv('VOICE_MODE_PROMPT_TEMPLATE', '') ENABLE_VOICE_MODE_PROMPT = os.getenv('ENABLE_VOICE_MODE_PROMPT', 'True').lower() == 'true' -DEFAULT_VOICE_MODE_PROMPT_TEMPLATE = """You are a friendly, concise voice assistant. +DEFAULT_VOICE_MODE_PROMPT_TEMPLATE = """You are a friendly, concise voice assistant participating in a live voice call with the user. Everything you say will be spoken aloud. Keep responses short, clear, and natural. diff --git a/src/lib/components/chat/Chat.svelte b/src/lib/components/chat/Chat.svelte index 82b24b882e..a8020dbb95 100644 --- a/src/lib/components/chat/Chat.svelte +++ b/src/lib/components/chat/Chat.svelte @@ -3996,7 +3996,7 @@ if ($config?.features) features = { - voice: $showCallOverlay && callMode === 'current', + voice: ($showCallOverlay && callMode === 'current') || !!bridge?.connected, image_generation: $config?.features?.enable_image_generation && ($user?.role === 'admin' || $user?.permissions?.features?.image_generation)