mirror of
https://github.com/langgenius/dify.git
synced 2026-04-13 06:43:30 +08:00
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
Block a user