Bladeren bron

fix: typo in sd3 (#5000)

Yeuoly 10 maanden geleden
bovenliggende
commit
52585aea74

+ 1 - 1
api/core/tools/provider/builtin/stability/tools/text2image.py

@@ -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',

+ 6 - 6
api/core/tools/provider/builtin/stability/tools/text2image.yaml

@@ -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