mirror of
				https://gitee.com/hhyykk/ipms-sjy.git
				synced 2025-10-31 10:18:42 +08:00 
			
		
		
		
	不传入options 参数,就先不builder
This commit is contained in:
		| @@ -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 | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 cherishsince
					cherishsince