bugfix: model str maybe empty (#2660)

pull/2663/head
nan jiang 2 years ago committed by GitHub
parent 2001483659
commit bc65ee10c0
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -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…
Cancel
Save