feat(routes): sync model globals via config API, fix log message

- Add models.text, models.evil, models.japanese to config/set globals sync
- Fix language toggle log to show actual model name instead of hardcoded string
This commit is contained in:
2026-05-20 13:55:22 +03:00
parent 8e5260561a
commit 6bf9a30c33
2 changed files with 4 additions and 1 deletions

View File

@@ -93,6 +93,9 @@ async def set_config_value(request: Request):
"voice.debug_mode": ("VOICE_DEBUG_MODE", bool),
"memory.use_cheshire_cat": ("USE_CHESHIRE_CAT", bool),
"gpu.prefer_amd": ("PREFER_AMD_GPU", bool),
"models.text": ("TEXT_MODEL", str),
"models.evil": ("EVIL_TEXT_MODEL", str),
"models.japanese": ("JAPANESE_TEXT_MODEL", str),
}
if key_path in _GLOBALS_SYNC: