fix: typo in sd3 (#5000)
This commit is contained in:
parent
73dee84cab
commit
52585aea74
@ -23,7 +23,7 @@ class StableDiffusionTool(BuiltinTool, BaseStabilityAuthorization):
|
|||||||
"""
|
"""
|
||||||
payload = {
|
payload = {
|
||||||
'prompt': tool_parameters.get('prompt', ''),
|
'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',
|
'mode': 'text-to-image',
|
||||||
'seed': tool_parameters.get('seed', 0),
|
'seed': tool_parameters.get('seed', 0),
|
||||||
'output_format': 'png',
|
'output_format': 'png',
|
||||||
|
@ -85,7 +85,7 @@ parameters:
|
|||||||
min: 0
|
min: 0
|
||||||
max: 4294967294
|
max: 4294967294
|
||||||
form: form
|
form: form
|
||||||
- name: aspect_radio
|
- name: aspect_ratio
|
||||||
type: select
|
type: select
|
||||||
default: '16:9'
|
default: '16:9'
|
||||||
options:
|
options:
|
||||||
@ -131,12 +131,12 @@ parameters:
|
|||||||
pt_BR: '9:21'
|
pt_BR: '9:21'
|
||||||
required: false
|
required: false
|
||||||
label:
|
label:
|
||||||
en_US: Aspect Radio
|
en_US: Aspect Ratio
|
||||||
zh_Hans: 长宽比
|
zh_Hans: 长宽比
|
||||||
pt_BR: Aspect Radio
|
pt_BR: Aspect Ratio
|
||||||
human_description:
|
human_description:
|
||||||
en_US: Aspect Radio
|
en_US: Aspect Ratio
|
||||||
zh_Hans: 长宽比
|
zh_Hans: 长宽比
|
||||||
pt_BR: Aspect Radio
|
pt_BR: Aspect Ratio
|
||||||
llm_description: Aspect Radio
|
llm_description: Aspect Ratio
|
||||||
form: form
|
form: form
|
||||||
|
Loading…
Reference in New Issue
Block a user