Commit c808453c1dc7213e4b94113f7f21c3fcc735c4ca

Authored by cherishsince
1 parent 26616ea7

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

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 {
29 29 @Schema(description = "图像生成的风格。可为vivid(生动)或natural(自然)")
30 30 private String style;
31 31  
32   - @Schema(description = "生成图像的尺寸大小。对于dall-e-2模型,尺寸可为256x256, 512x512, 或 1024x1024。对于dall-e-3模型,尺寸可为1024x1024, 1792x1024, 或 1024x1792。")
33   - @NotNull(message = "size不能为空!")
34   - private String size;
  32 + @Schema(description = "图片高度。对于dall-e-2模型,尺寸可为256x256, 512x512, 或 1024x1024。对于dall-e-3模型,尺寸可为1024x1024, 1792x1024, 或 1024x1792。")
  33 + @NotNull(message = "图片高度不能为空!")
  34 + private String height;
  35 +
  36 + @Schema(description = "图片宽度。对于dall-e-2模型,尺寸可为256x256, 512x512, 或 1024x1024。对于dall-e-3模型,尺寸可为1024x1024, 1792x1024, 或 1024x1792。")
  37 + @NotNull(message = "图片宽度不能为空!")
  38 + private String width;
35 39  
36 40 }
... ...