类 DisabledImageModel
java.lang.Object
dev.langchain4j.model.image.DisabledImageModel
- 所有已实现的接口:
ImageModel
An
ImageModel which throws a ModelDisabledException for all of its methods
This could be used in tests, or in libraries that extend this one to conditionally enable or disable functionality.
-
构造器概要
构造器 -
方法概要
修饰符和类型方法说明Given an existing image, edit this image following the given prompt and apply the changes only to the part of the image specified by the given mask.Given an existing image, edit this image following the given prompt.Given a prompt, generate an image.Given a prompt, generate n images.
-
构造器详细资料
-
DisabledImageModel
public DisabledImageModel()
-
-
方法详细资料
-
generate
从接口复制的说明:ImageModelGiven a prompt, generate an image.- 指定者:
generate在接口中ImageModel- 参数:
prompt- The prompt to generate an image from.- 返回:
- The generated image Response.
-
generate
从接口复制的说明:ImageModelGiven a prompt, generate n images.Not supported by all models; as explicit support is needed to generate different images from the same prompt.
- 指定者:
generate在接口中ImageModel- 参数:
prompt- The prompt to generate images from.n- The number of images to generate.- 返回:
- The generated images Response.
-
edit
从接口复制的说明:ImageModelGiven an existing image, edit this image following the given prompt.- 指定者:
edit在接口中ImageModel- 参数:
image- The image to be edited.prompt- The prompt to edit the image.- 返回:
- The generated image Response.
-
edit
从接口复制的说明:ImageModelGiven an existing image, edit this image following the given prompt and apply the changes only to the part of the image specified by the given mask.- 指定者:
edit在接口中ImageModel- 参数:
image- The image to be edited.mask- The image mask to apply to delimit the area to edit.prompt- The prompt to edit the image.- 返回:
- The generated image Response.
-