【代码评审】AI:Suno 音乐的 review

This commit is contained in:
YunaiV 2024-05-30 19:21:12 +08:00
parent 74620ebc34
commit c53633a286
6 changed files with 6 additions and 0 deletions

View File

@ -9,6 +9,7 @@ import org.springframework.stereotype.Component;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.client.RestTemplate;
// TODO @fan这个写到 starter-ai 里哈搞个 MidjourneyApi参考 https://github.com/spring-projects/spring-ai/blob/main/models/spring-ai-openai/src/main/java/org/springframework/ai/openai/api/OpenAiApi.java 的风格写哈
/**
* Midjourney Proxy 客户端
*

View File

@ -6,6 +6,7 @@ import lombok.Data;
import java.util.List;
// TODO @fan待定
/**
* MidjourneyImagine 请求
*

View File

@ -6,6 +6,7 @@ import lombok.Getter;
import java.util.List;
// TODO @fan待定
/**
* Midjourney 提交任务 code 枚举
*

View File

@ -5,6 +5,7 @@ import lombok.Data;
import java.util.Map;
// TODO @fan待定
/**
* MidjourneyImagine 请求
*

View File

@ -54,6 +54,7 @@ public class AiImageController {
// TODO @fan建议把 dallDrawingmidjourney 融合成一个 draw 接口异步绘制然后返回一个 id 给前端前端通过 get 接口轮询直到获取到生成成功
// TODO @芋艿: 参数差异较大
// TODO @fan直接参数平铺写好注释要么
@Operation(summary = "dall2/dall3绘画", description = "openAi dall3是付费的!")
@PostMapping("/dall")
public CommonResult<Long> dall(@Validated @RequestBody AiImageDallReqVO req) {

View File

@ -7,6 +7,7 @@ import lombok.experimental.Accessors;
import java.util.List;
// TODO @fan待定
/**
* midjourney req
*