优化llm配置的保存逻辑

This commit is contained in:
puke
2025-12-22 14:53:12 +08:00
parent 5b7ec15a9a
commit cd09e8034f
5 changed files with 20 additions and 12 deletions

View File

@@ -153,8 +153,10 @@ class ConfigManager:
updates = {}
if comfyui_url is not None:
updates["comfyui_url"] = comfyui_url
updates["comfyui_api_key"] = comfyui_api_key
updates["runninghub_api_key"] = runninghub_api_key
if comfyui_api_key is not None:
updates["comfyui_api_key"] = comfyui_api_key
if runninghub_api_key is not None:
updates["runninghub_api_key"] = runninghub_api_key
if updates:
self.update({"comfyui": updates})