This commit is contained in:
Timothy Jaeryang Baek committed 2026-05-09 05:14:55 +09:00
1 parent 41107a34ca
commit 1789303886
5 files changed
+17 -13

No files matched your search

+2 -2
View File
@@ -2448,8 +2448,8 @@ async def process_chat_payload(request, form_data, user, metadata, model):
extra_params['__features__'] = features
if features:
if 'voice' in features and features['voice']:
if request.app.state.config.VOICE_MODE_PROMPT_TEMPLATE != None:
if request.app.state.config.VOICE_MODE_PROMPT_TEMPLATE != '':
if getattr(request.app.state.config, "ENABLE_VOICE_MODE_PROMPT", True):
if request.app.state.config.VOICE_MODE_PROMPT_TEMPLATE:
template = request.app.state.config.VOICE_MODE_PROMPT_TEMPLATE
else:
template = DEFAULT_VOICE_MODE_PROMPT_TEMPLATE