mirror of https://github.com/langgenius/dify.git
optimize: sd
This commit is contained in:
parent
59d279fbe0
commit
1c004e0df6
|
|
@ -189,7 +189,7 @@ class StableDiffusionTool(BuiltinTool):
|
|||
if not base_url:
|
||||
return []
|
||||
api_url = str(URL(base_url) / 'sdapi' / 'v1' / 'sd-models')
|
||||
response = get(url=api_url, timeout=10)
|
||||
response = get(url=api_url, timeout=(2, 10))
|
||||
if response.status_code != 200:
|
||||
return []
|
||||
else:
|
||||
|
|
|
|||
Loading…
Reference in New Issue