Explorar el Código

【优化】image 返回的size 改为 width 和 height

cherishsince hace 11 meses
padre
commit
c808453c1d

+ 7 - 3
yudao-module-ai/yudao-module-ai-biz/src/main/java/cn/iocoder/yudao/module/ai/controller/admin/image/vo/AiImageDallReqVO.java

@@ -29,8 +29,12 @@ public class AiImageDallReqVO {
     @Schema(description = "图像生成的风格。可为vivid(生动)或natural(自然)")
     private String style;
 
-    @Schema(description = "生成图像的尺寸大小。对于dall-e-2模型,尺寸可为256x256, 512x512, 或 1024x1024。对于dall-e-3模型,尺寸可为1024x1024, 1792x1024, 或 1024x1792。")
-    @NotNull(message = "size不能为空!")
-    private String size;
+    @Schema(description = "图片高度。对于dall-e-2模型,尺寸可为256x256, 512x512, 或 1024x1024。对于dall-e-3模型,尺寸可为1024x1024, 1792x1024, 或 1024x1792。")
+    @NotNull(message = "图片高度不能为空!")
+    private String height;
+
+    @Schema(description = "图片宽度。对于dall-e-2模型,尺寸可为256x256, 512x512, 或 1024x1024。对于dall-e-3模型,尺寸可为1024x1024, 1792x1024, 或 1024x1792。")
+    @NotNull(message = "图片宽度不能为空!")
+    private String width;
 
 }