Uses of Class
dev.langchain4j.model.watsonx.WatsonxGatewayImageModel.Builder
Packages that use WatsonxGatewayImageModel.Builder
-
Uses of WatsonxGatewayImageModel.Builder in dev.langchain4j.model.watsonx
Subclasses with type arguments of type WatsonxGatewayImageModel.Builder in dev.langchain4j.model.watsonxModifier and TypeClassDescriptionstatic classBuilder class for constructingWatsonxGatewayImageModelinstances with configurable parameters.Methods in dev.langchain4j.model.watsonx that return WatsonxGatewayImageModel.BuilderModifier and TypeMethodDescriptionWatsonxGatewayImageModel.Builder.background(com.ibm.watsonx.ai.gateway.image.ModelGatewayImageParameters.Background background) Sets the background of the generated images.WatsonxGatewayImageModel.Builder.background(String background) Sets the background of the generated images as a raw string, for the values thatModelGatewayImageParameters.Backgrounddoes not cover yet.WatsonxGatewayImageModel.builder()Returns a newWatsonxGatewayImageModel.Builderinstance.Sets the gateway image model id, e.g.WatsonxGatewayImageModel.Builder.moderation(com.ibm.watsonx.ai.gateway.image.ModelGatewayImageParameters.Moderation moderation) Sets how strictly the generated images are filtered,ModelGatewayImageParameters.Moderation.LOWbeing the least restrictive.WatsonxGatewayImageModel.Builder.moderation(String moderation) Sets how strictly the generated images are filtered as a raw string, for the values thatModelGatewayImageParameters.Moderationdoes not cover yet.WatsonxGatewayImageModel.Builder.outputCompression(Integer outputCompression) Sets the compression level of the generated images, from 0 to 100.WatsonxGatewayImageModel.Builder.outputFormat(com.ibm.watsonx.ai.gateway.image.ModelGatewayImageParameters.OutputFormat outputFormat) Sets the file format of the generated images.WatsonxGatewayImageModel.Builder.outputFormat(String outputFormat) Sets the file format of the generated images as a raw string, for the formats thatModelGatewayImageParameters.OutputFormatdoes not cover yet.WatsonxGatewayImageModel.Builder.quality(com.ibm.watsonx.ai.gateway.image.ModelGatewayImageParameters.Quality quality) Sets the quality of the generated images.Sets the quality of the generated images as a raw string, for the values thatModelGatewayImageParameters.Qualitydoes not cover yet.WatsonxGatewayImageModel.Builder.responseFormat(com.ibm.watsonx.ai.gateway.image.ModelGatewayImageParameters.ResponseFormat responseFormat) Sets how the generated images are returned, as a link withModelGatewayImageParameters.ResponseFormat.URLor as Base64 data withModelGatewayImageParameters.ResponseFormat.B64_JSON.WatsonxGatewayImageModel.Builder.responseFormat(String responseFormat) Sets how the generated images are returned as a raw string, for the formats thatModelGatewayImageParameters.ResponseFormatdoes not cover yet.WatsonxGatewayImageModel.Builder.size(com.ibm.watsonx.ai.gateway.image.ModelGatewayImageParameters.Size size) Sets the dimensions of the generated images.Sets the dimensions of the generated images as a raw string, e.g.WatsonxGatewayImageModel.Builder.style(com.ibm.watsonx.ai.gateway.image.ModelGatewayImageParameters.Style style) Sets the visual style of the generated images.Sets the visual style of the generated images as a raw string, for the values thatModelGatewayImageParameters.Styledoes not cover yet.Sets the identifier of the end user, used for abuse monitoring.