mirror of
https://gitee.com/huangge1199_admin/vue-pro.git
synced 2024-11-26 17:21:53 +08:00
增加 spring ai Image模块注释
This commit is contained in:
parent
c3e36c19ea
commit
7fe1b77919
@ -21,11 +21,15 @@ import java.util.Objects;
|
||||
public class Image {
|
||||
|
||||
/**
|
||||
* 可以访问图像的URL。
|
||||
*
|
||||
* The URL where the image can be accessed.
|
||||
*/
|
||||
private String url;
|
||||
|
||||
/**
|
||||
* Base64编码的图像字符串。
|
||||
*
|
||||
* Base64 encoded image string.
|
||||
*/
|
||||
private String b64Json;
|
||||
|
@ -22,6 +22,11 @@ import cn.iocoder.yudao.framework.ai.model.ModelClient;
|
||||
@FunctionalInterface
|
||||
public interface ImageClient extends ModelClient<ImagePrompt, ImageResponse> {
|
||||
|
||||
/**
|
||||
* 跟 chat一样
|
||||
* @param request the request object to be sent to the AI model
|
||||
* @return
|
||||
*/
|
||||
ImageResponse call(ImagePrompt request);
|
||||
|
||||
}
|
||||
|
@ -21,6 +21,7 @@ import cn.iocoder.yudao.framework.ai.model.ModelResult;
|
||||
|
||||
public class ImageGeneration implements ModelResult<Image> {
|
||||
|
||||
// metadata 信息为空现在
|
||||
private ImageGenerationMetadata imageGenerationMetadata;
|
||||
|
||||
private Image image;
|
||||
|
Loading…
Reference in New Issue
Block a user