Commit 633b1126032ac6217fe0556cdc00cd05df7625a0
1 parent
7fe1b779
不传入options 参数,就先不builder
Showing
2 changed files
with
4 additions
and
3 deletions
yudao-module-ai/yudao-spring-boot-starter-ai/src/main/java/cn/iocoder/yudao/framework/ai/image/ImageClient.java
| ... | ... | @@ -24,9 +24,9 @@ public interface ImageClient extends ModelClient<ImagePrompt, ImageResponse> { |
| 24 | 24 | |
| 25 | 25 | /** |
| 26 | 26 | * 跟 chat一样 |
| 27 | - * @param request the request object to be sent to the AI model | |
| 27 | + * @param imagePrompt the request object to be sent to the AI model | |
| 28 | 28 | * @return |
| 29 | 29 | */ |
| 30 | - ImageResponse call(ImagePrompt request); | |
| 30 | + ImageResponse call(ImagePrompt imagePrompt); | |
| 31 | 31 | |
| 32 | 32 | } | ... | ... |
yudao-module-ai/yudao-spring-boot-starter-ai/src/main/java/cn/iocoder/yudao/framework/ai/image/ImagePrompt.java
| ... | ... | @@ -49,7 +49,8 @@ public class ImagePrompt implements ModelRequest<List<ImageMessage>> { |
| 49 | 49 | } |
| 50 | 50 | |
| 51 | 51 | public ImagePrompt(String instructions) { |
| 52 | - this(new ImageMessage(instructions), ImageOptionsBuilder.builder().build()); | |
| 52 | +// this(new ImageMessage(instructions), ImageOptionsBuilder.builder().build()); | |
| 53 | + this(new ImageMessage(instructions), null); | |
| 53 | 54 | } |
| 54 | 55 | |
| 55 | 56 | @Override | ... | ... |