Class OpenAiImageProperties

java.lang.Object
org.springframework.ai.model.openai.autoconfigure.AbstractOpenAiProperties
org.springframework.ai.model.openai.autoconfigure.OpenAiImageProperties

@ConfigurationProperties("spring.ai.openai.image") public class OpenAiImageProperties extends AbstractOpenAiProperties
OpenAI SDK Image autoconfiguration properties.
Author:
Christian Tzolov, Thomas Vitale, lambochen
  • Field Details

  • Constructor Details

    • OpenAiImageProperties

      public OpenAiImageProperties()
  • Method Details

    • getModel

      public @Nullable String getModel()
      Overrides:
      getModel in class AbstractOpenAiProperties
    • setModel

      public void setModel(@Nullable String model)
      Overrides:
      setModel in class AbstractOpenAiProperties
    • getN

      public @Nullable Integer getN()
    • setN

      public void setN(@Nullable Integer n)
    • getWidth

      public @Nullable Integer getWidth()
    • setWidth

      public void setWidth(@Nullable Integer width)
    • getHeight

      public @Nullable Integer getHeight()
    • setHeight

      public void setHeight(@Nullable Integer height)
    • getQuality

      public @Nullable String getQuality()
    • setQuality

      public void setQuality(@Nullable String quality)
    • getResponseFormat

      public @Nullable String getResponseFormat()
    • setResponseFormat

      public void setResponseFormat(@Nullable String responseFormat)
    • getSize

      public @Nullable String getSize()
    • setSize

      public void setSize(@Nullable String size)
    • getStyle

      public @Nullable String getStyle()
    • setStyle

      public void setStyle(@Nullable String style)
    • getUser

      public @Nullable String getUser()
    • setUser

      public void setUser(@Nullable String user)
    • toOptions

      public OpenAiImageOptions toOptions()
    • getOptions

      @DeprecatedConfigurationProperty(replacement="spring.ai.openai.image") @Deprecated(since="2.0.0", forRemoval=true) public OpenAiImageProperties.Options getOptions()
      Deprecated, for removal: This API element is subject to removal in a future version.
    • setOptions

      public void setOptions(OpenAiImageProperties.Options options)