mirror of
				https://gitee.com/hhyykk/ipms-sjy.git
				synced 2025-10-31 10:18:42 +08:00 
			
		
		
		
	增加 spring ai Image模块注释
This commit is contained in:
		| @@ -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; | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 cherishsince
					cherishsince