mirror of
https://git.mirrors.martin98.com/https://github.com/langgenius/dify.git
synced 2025-08-13 04:38:58 +08:00
bugfix: model str maybe empty (#2660)
This commit is contained in:
parent
2001483659
commit
bc65ee10c0
@ -70,7 +70,7 @@ class StableDiffusionTool(BuiltinTool):
|
||||
if not base_url:
|
||||
return self.create_text_message('Please input base_url')
|
||||
|
||||
if 'model' in tool_parameters:
|
||||
if 'model' in tool_parameters and tool_parameters['model']:
|
||||
self.runtime.credentials['model'] = tool_parameters['model']
|
||||
|
||||
model = self.runtime.credentials.get('model', None)
|
||||
|
Loading…
x
Reference in New Issue
Block a user