edit config_options_node add api protocol
This commit is contained in:
@@ -46,7 +46,7 @@ class ModelScopeImage(io.ComfyNode):
|
||||
"""
|
||||
# 如果提供了配置覆盖,则使用覆盖配置
|
||||
if config_options is not None:
|
||||
base_url = config_options.get('base_url', '').strip()
|
||||
base_url = config_options.get('api_url', '').strip()
|
||||
api_key = config_options.get('api_key', '').strip()
|
||||
timeout = config_options.get('timeout', 300)
|
||||
|
||||
@@ -95,8 +95,8 @@ class ModelScopeImage(io.ComfyNode):
|
||||
|
||||
# 如果有配置覆盖,则使用覆盖的值(如果提供了)
|
||||
if config_options is not None:
|
||||
if config_options.get('base_url', '').strip():
|
||||
base_url = config_options['base_url'].strip()
|
||||
if config_options.get('api_url', '').strip():
|
||||
base_url = config_options['api_url'].strip()
|
||||
if config_options.get('api_key', '').strip():
|
||||
api_key = config_options['api_key'].strip()
|
||||
if config_options.get('timeout'):
|
||||
|
||||
Reference in New Issue
Block a user