Commit 92ee6659961d0ff65eb247a0b6f66a13e17e6b59
1 parent
aea4f465
【增加】AI Image 常量
Showing
2 changed files
with
7 additions
and
76 deletions
yudao-module-ai/yudao-module-ai-api/src/main/java/cn/iocoder/yudao/module/ai/AiCommonConstants.java
| @@ -10,7 +10,12 @@ package cn.iocoder.yudao.module.ai; | @@ -10,7 +10,12 @@ package cn.iocoder.yudao.module.ai; | ||
| 10 | public class AiCommonConstants { | 10 | public class AiCommonConstants { |
| 11 | 11 | ||
| 12 | /** | 12 | /** |
| 13 | - * 对话 - 默认 title | 13 | + * 绘画 request - style |
| 14 | */ | 14 | */ |
| 15 | - public static final String CONVERSATION_DEFAULT_TITLE = "新增对话"; | 15 | + public static final String DRAW_REQ_KEY_STYLE = "style"; |
| 16 | + /** | ||
| 17 | + * dall size - 模板(1024x1024) | ||
| 18 | + */ | ||
| 19 | + public static final String DALL_SIZE_TEMPLATE = "%sx%s"; | ||
| 20 | + | ||
| 16 | } | 21 | } |
yudao-module-ai/yudao-module-ai-biz/src/main/java/cn/iocoder/yudao/module/ai/controller/admin/image/vo/AiImageDallRespVO.java deleted
| 1 | -package cn.iocoder.yudao.module.ai.controller.admin.image.vo; | ||
| 2 | - | ||
| 3 | -import io.swagger.v3.oas.annotations.media.Schema; | ||
| 4 | -import lombok.Data; | ||
| 5 | -import lombok.experimental.Accessors; | ||
| 6 | - | ||
| 7 | -import java.util.Map; | ||
| 8 | - | ||
| 9 | -/** | ||
| 10 | - * dall2/dall2 绘画 | ||
| 11 | - * | ||
| 12 | - * @author fansili | ||
| 13 | - * @time 2024/4/25 16:24 | ||
| 14 | - * @since 1.0 | ||
| 15 | - */ | ||
| 16 | -@Data | ||
| 17 | -@Accessors(chain = true) | ||
| 18 | -public class AiImageDallRespVO { | ||
| 19 | - | ||
| 20 | - @Schema(description = "id编号", example = "1") | ||
| 21 | - private Long id; | ||
| 22 | - | ||
| 23 | - @Schema(description = "用户id", example = "1") | ||
| 24 | - private Long userId; | ||
| 25 | - | ||
| 26 | - @Schema(description = "提示词", example = "南极的小企鹅") | ||
| 27 | - private String prompt; | ||
| 28 | - | ||
| 29 | - @Schema(description = "平台", example = "openai") | ||
| 30 | - private String platform; | ||
| 31 | - | ||
| 32 | - @Schema(description = "模型", example = "dall2") | ||
| 33 | - private String model; | ||
| 34 | - | ||
| 35 | - @Schema(description = "图片宽度", example = "1024") | ||
| 36 | - private String width; | ||
| 37 | - | ||
| 38 | - @Schema(description = "图片高度", example = "1024") | ||
| 39 | - private String height; | ||
| 40 | - | ||
| 41 | - @Schema(description = "绘画状态:10 进行中、20 绘画完成、30 绘画失败", example = "10") | ||
| 42 | - private String status; | ||
| 43 | - | ||
| 44 | - @Schema(description = "是否发布", example = "public") | ||
| 45 | - private String publicStatus; | ||
| 46 | - | ||
| 47 | - @Schema(description = "图片地址(自己服务器)", example = "https://") | ||
| 48 | - private String picUrl; | ||
| 49 | - | ||
| 50 | - @Schema(description = "绘画图片地址(绘画好的服务器)", example = "https://") | ||
| 51 | - private String originalPicUrl; | ||
| 52 | - | ||
| 53 | - @Schema(description = "绘画错误信息", example = "图片错误信息") | ||
| 54 | - private String errorMessage; | ||
| 55 | - | ||
| 56 | - // ============ 绘画请求参数 ============ | ||
| 57 | - | ||
| 58 | - // todo @fan:下面的 style、mjNonceId 直接就不用注释啦,直接去看 DO 完事哈 | ||
| 59 | - /** | ||
| 60 | - * - style | ||
| 61 | - */ | ||
| 62 | - @Schema(description = "绘画请求参数") | ||
| 63 | - private Map<String, Object> drawRequest; | ||
| 64 | - | ||
| 65 | - /** | ||
| 66 | - * - mjNonceId | ||
| 67 | - * - mjOperationId | ||
| 68 | - * - mjOperationName | ||
| 69 | - * - mjOperations | ||
| 70 | - */ | ||
| 71 | - @Schema(description = "绘画请求响应参数") | ||
| 72 | - private Map<String, Object> drawResponse; | ||
| 73 | - | ||
| 74 | -} |