Class ImageModelInput.Builder

java.lang.Object
com.intellijava.core.model.input.ImageModelInput.Builder
Enclosing class:
ImageModelInput

public static class ImageModelInput.Builder extends Object
Builder class for ImageModelInput
  • Constructor Details

    • Builder

      public Builder(String prompt)
      Image input Constructor.
      Parameters:
      prompt - : the text of the required action or the question.
  • Method Details

    • setPrompt

      public ImageModelInput.Builder setPrompt(String prompt)
      Setter for prompt
      Parameters:
      prompt - : the text of the required action or the question.
      Returns:
      instance of Builder
    • setNumberOfImages

      public ImageModelInput.Builder setNumberOfImages(int numberOfImages)
      Setter for numberOfImages
      Parameters:
      numberOfImages - : the number of the generated images.
      Returns:
      instance of Builder
    • setImageSize

      public ImageModelInput.Builder setImageSize(String imageSize)
      Setter for imageSize
      Parameters:
      imageSize - : the size of the generated images, options are: 256x256, 512x512, or 1024x1024.
      Returns:
      instance of Builder
    • build

      public ImageModelInput build()
      Build the final ImageModelInput object.
      Returns:
      final ImageModelInput object