mirror of
https://github.com/open-webui/open-webui.git
synced 2026-10-15 04:18:18 +00:00
refac
This commit is contained in:
parent
1f8af83b80
commit
c0f56767f5
2 changed files with 2 additions and 2 deletions
|
|
@ -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.
|
||||
|
|
|
|||
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue