mirror of
https://gitee.com/hhyykk/ipms-sjy.git
synced 2025-07-19 13:35:07 +08:00
不传入options 参数,就先不builder
This commit is contained in:
@ -24,9 +24,9 @@ public interface ImageClient extends ModelClient<ImagePrompt, ImageResponse> {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* 跟 chat一样
|
* 跟 chat一样
|
||||||
* @param request the request object to be sent to the AI model
|
* @param imagePrompt the request object to be sent to the AI model
|
||||||
* @return
|
* @return
|
||||||
*/
|
*/
|
||||||
ImageResponse call(ImagePrompt request);
|
ImageResponse call(ImagePrompt imagePrompt);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -49,7 +49,8 @@ public class ImagePrompt implements ModelRequest<List<ImageMessage>> {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public ImagePrompt(String instructions) {
|
public ImagePrompt(String instructions) {
|
||||||
this(new ImageMessage(instructions), ImageOptionsBuilder.builder().build());
|
// this(new ImageMessage(instructions), ImageOptionsBuilder.builder().build());
|
||||||
|
this(new ImageMessage(instructions), null);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
Reference in New Issue
Block a user