fix: typo in sd3 (#5000)

This commit is contained in:
Yeuoly 2024-06-06 17:08:49 +08:00 committed by GitHub
parent 73dee84cab
commit 52585aea74
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 7 additions and 7 deletions

View File

@ -23,7 +23,7 @@ class StableDiffusionTool(BuiltinTool, BaseStabilityAuthorization):
"""
payload = {
'prompt': tool_parameters.get('prompt', ''),
'aspect_radio': tool_parameters.get('aspect_radio', '16:9'),
'aspect_ratio': tool_parameters.get('aspect_ratio', '16:9') or tool_parameters.get('aspect_radio', '16:9'),
'mode': 'text-to-image',
'seed': tool_parameters.get('seed', 0),
'output_format': 'png',

View File

@ -85,7 +85,7 @@ parameters:
min: 0
max: 4294967294
form: form
- name: aspect_radio
- name: aspect_ratio
type: select
default: '16:9'
options:
@ -131,12 +131,12 @@ parameters:
pt_BR: '9:21'
required: false
label:
en_US: Aspect Radio
en_US: Aspect Ratio
zh_Hans: 长宽比
pt_BR: Aspect Radio
pt_BR: Aspect Ratio
human_description:
en_US: Aspect Radio
en_US: Aspect Ratio
zh_Hans: 长宽比
pt_BR: Aspect Radio
llm_description: Aspect Radio
pt_BR: Aspect Ratio
llm_description: Aspect Ratio
form: form