mirror of
https://gitee.com/huangge1199_admin/vue-pro.git
synced 2024-11-26 17:21:53 +08:00
【代码评审】AI:Suno 音乐的 review
This commit is contained in:
parent
74620ebc34
commit
c53633a286
@ -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 客户端
|
||||
*
|
||||
|
@ -6,6 +6,7 @@ import lombok.Data;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
// TODO @fan:待定
|
||||
/**
|
||||
* Midjourney:Imagine 请求
|
||||
*
|
||||
|
@ -6,6 +6,7 @@ import lombok.Getter;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
// TODO @fan:待定
|
||||
/**
|
||||
* Midjourney 提交任务 code 枚举
|
||||
*
|
||||
|
@ -5,6 +5,7 @@ import lombok.Data;
|
||||
|
||||
import java.util.Map;
|
||||
|
||||
// TODO @fan:待定
|
||||
/**
|
||||
* Midjourney:Imagine 请求
|
||||
*
|
||||
|
@ -54,6 +54,7 @@ public class AiImageController {
|
||||
|
||||
// TODO @fan:建议把 dallDrawing、midjourney 融合成一个 draw 接口,异步绘制;然后返回一个 id 给前端;前端通过 get 接口轮询,直到获取到生成成功
|
||||
// TODO @芋艿: 参数差异较大
|
||||
// TODO @fan:直接参数平铺?写好注释,要么?
|
||||
@Operation(summary = "dall2/dall3绘画", description = "openAi dall3是付费的!")
|
||||
@PostMapping("/dall")
|
||||
public CommonResult<Long> dall(@Validated @RequestBody AiImageDallReqVO req) {
|
||||
|
@ -7,6 +7,7 @@ import lombok.experimental.Accessors;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
// TODO @fan:待定
|
||||
/**
|
||||
* midjourney req
|
||||
*
|
||||
|
Loading…
Reference in New Issue
Block a user