TASK: 接入第三方api freepik 新增sketch extract variation

This commit is contained in:
2025-06-10 17:50:04 +08:00
parent 090b9ab6ab
commit 595effa04c
4 changed files with 130 additions and 19 deletions

View File

@@ -87,7 +87,8 @@ public class GenerateController {
@ApiOperation(value = "imageToSketch")
@PostMapping("/imageToSketch")
public Response<GenerateResultVO> imageToSketch(@Valid @RequestBody ImageToSketchDTO imageToSketchDTO) {
return Response.success(generateService.imageToSketch(imageToSketchDTO, null, null));
return Response.success(generateService.imageToSketchAsync(imageToSketchDTO, null, null));
// return Response.success(generateService.imageToSketch(imageToSketchDTO, null, null));
}
// modifySketch