소스 검색

bugfix: model str maybe empty (#2660)

tags/0.5.8
nan jiang 1 년 전
부모
커밋
bc65ee10c0
No account linked to committer's email address
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1
    1
      api/core/tools/provider/builtin/stablediffusion/tools/stable_diffusion.py

+ 1
- 1
api/core/tools/provider/builtin/stablediffusion/tools/stable_diffusion.py 파일 보기

@@ -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…
취소
저장