新增runninghub的48G显存机器调用支持
This commit is contained in:
@@ -131,6 +131,7 @@ class ConfigManager:
|
||||
"comfyui_api_key": self.config.comfyui.comfyui_api_key,
|
||||
"runninghub_api_key": self.config.comfyui.runninghub_api_key,
|
||||
"runninghub_concurrent_limit": self.config.comfyui.runninghub_concurrent_limit,
|
||||
"runninghub_instance_type": self.config.comfyui.runninghub_instance_type,
|
||||
"tts": {
|
||||
"default_workflow": self.config.comfyui.tts.default_workflow,
|
||||
},
|
||||
@@ -149,7 +150,8 @@ class ConfigManager:
|
||||
comfyui_url: Optional[str] = None,
|
||||
comfyui_api_key: Optional[str] = None,
|
||||
runninghub_api_key: Optional[str] = None,
|
||||
runninghub_concurrent_limit: Optional[int] = None
|
||||
runninghub_concurrent_limit: Optional[int] = None,
|
||||
runninghub_instance_type: Optional[str] = None
|
||||
):
|
||||
"""Set ComfyUI global configuration"""
|
||||
updates = {}
|
||||
@@ -161,6 +163,9 @@ class ConfigManager:
|
||||
updates["runninghub_api_key"] = runninghub_api_key
|
||||
if runninghub_concurrent_limit is not None:
|
||||
updates["runninghub_concurrent_limit"] = runninghub_concurrent_limit
|
||||
if runninghub_instance_type is not None:
|
||||
# Empty string means disable (treat as None for storage)
|
||||
updates["runninghub_instance_type"] = runninghub_instance_type if runninghub_instance_type else None
|
||||
|
||||
if updates:
|
||||
self.update({"comfyui": updates})
|
||||
|
||||
Reference in New Issue
Block a user