不传入options 参数,就先不builder

This commit is contained in:
cherishsince 2024-03-17 11:19:16 +08:00
parent 7fe1b77919
commit 633b112603
2 changed files with 4 additions and 3 deletions

View File

@ -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);
}

View File

@ -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