mirror of
https://gitee.com/huangge1199_admin/vue-pro.git
synced 2025-01-31 09:30:05 +08:00
不传入options 参数,就先不builder
This commit is contained in:
parent
7fe1b77919
commit
633b112603
@ -24,9 +24,9 @@ public interface ImageClient extends ModelClient<ImagePrompt, ImageResponse> {
|
||||
|
||||
/**
|
||||
* 跟 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
|
||||
*/
|
||||
ImageResponse call(ImagePrompt request);
|
||||
ImageResponse call(ImagePrompt imagePrompt);
|
||||
|
||||
}
|
||||
|
@ -49,7 +49,8 @@ public class ImagePrompt implements ModelRequest<List<ImageMessage>> {
|
||||
}
|
||||
|
||||
public ImagePrompt(String instructions) {
|
||||
this(new ImageMessage(instructions), ImageOptionsBuilder.builder().build());
|
||||
// this(new ImageMessage(instructions), ImageOptionsBuilder.builder().build());
|
||||
this(new ImageMessage(instructions), null);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
Loading…
Reference in New Issue
Block a user