类 Image.Builder
java.lang.Object
dev.langchain4j.data.image.Image.Builder
- 封闭类:
- Image
Builder for
Image.-
构造器概要
构造器 -
方法概要
修饰符和类型方法说明base64Data(String base64Data) Set the base64 data of the image.build()Build theImage.Set the mime type of the image.revisedPrompt(String revisedPrompt) Set the revised prompt of the image.Set the url of the image.Set the url of the image.
-
构造器详细资料
-
Builder
public Builder()Create a newImage.Builder.
-
-
方法详细资料
-
url
Set the url of the image.- 参数:
url- the url of the image.- 返回:
this
-
url
Set the url of the image.- 参数:
url- the url of the image.- 返回:
this
-
base64Data
Set the base64 data of the image.- 参数:
base64Data- the base64 data of the image.- 返回:
this
-
mimeType
Set the mime type of the image.- 参数:
mimeType- the mime type of the image.- 返回:
this
-
revisedPrompt
Set the revised prompt of the image.- 参数:
revisedPrompt- the revised prompt of the image.- 返回:
this
-
build
Build theImage.- 返回:
- the
Image.
-