ciyidogan commited on
Commit
e440256
·
verified ·
1 Parent(s): 49dfb50

Update admin_routes.py

Browse files
Files changed (1) hide show
  1. admin_routes.py +4 -0
admin_routes.py CHANGED
@@ -570,6 +570,10 @@ async def update_environment(
570
  from config_provider import ConfigProvider
571
  ConfigProvider.reload()
572
 
 
 
 
 
573
  log(f"✅ Environment updated to {update.work_mode} with TTS: {update.tts_engine}, STT: {update.stt_engine} by {username}")
574
  return {"success": True}
575
 
 
570
  from config_provider import ConfigProvider
571
  ConfigProvider.reload()
572
 
573
+ # Update chat handler's config reference
574
+ from chat_handler import get_config
575
+ get_config()
576
+
577
  log(f"✅ Environment updated to {update.work_mode} with TTS: {update.tts_engine}, STT: {update.stt_engine} by {username}")
578
  return {"success": True}
579