Package org.springframework.ai.openai
Class OpenAiImageOptions
java.lang.Object
org.springframework.ai.openai.AbstractOpenAiOptions
org.springframework.ai.openai.OpenAiImageOptions
- All Implemented Interfaces:
ImageOptions,ModelOptions
Configuration information for the Image Model implementation using the OpenAI Java SDK.
- Author:
- Julien Dubois, Christian Tzolov, Mark Pollack
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsFields inherited from class org.springframework.ai.openai.AbstractOpenAiOptions
DEFAULT_MAX_RETRIES, DEFAULT_TIMEOUT -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic OpenAiImageOptions.Builderbuilder()boolean@Nullable Integer@Nullable IntegergetN()@Nullable String@Nullable String@Nullable StringgetSize()@Nullable StringgetStyle()@Nullable StringgetUser()@Nullable IntegergetWidth()inthashCode()voidvoidvoidsetQuality(@Nullable String quality) voidsetResponseFormat(@Nullable String responseFormat) voidvoidvoidvoidcom.openai.models.images.ImageGenerateParamstoOpenAiImageGenerateParams(ImagePrompt imagePrompt) toString()Methods inherited from class org.springframework.ai.openai.AbstractOpenAiOptions
getApiKey, getBaseUrl, getCredential, getCustomHeaders, getDeploymentName, getMaxRetries, getMicrosoftDeploymentName, getMicrosoftFoundryServiceVersion, getModel, getOrganizationId, getProxy, getTimeout, isGitHubModels, isMicrosoftFoundry, setApiKey, setBaseUrl, setCredential, setCustomHeaders, setDeploymentName, setGitHubModels, setMaxRetries, setMicrosoftDeploymentName, setMicrosoftFoundry, setMicrosoftFoundryServiceVersion, setModel, setOrganizationId, setProxy, setTimeoutMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.springframework.ai.image.ImageOptions
getModel
-
Field Details
-
DEFAULT_IMAGE_MODEL
-
-
Constructor Details
-
OpenAiImageOptions
public OpenAiImageOptions()
-
-
Method Details
-
builder
-
getN
- Specified by:
getNin interfaceImageOptions
-
setN
-
getWidth
- Specified by:
getWidthin interfaceImageOptions
-
setWidth
-
getHeight
- Specified by:
getHeightin interfaceImageOptions
-
setHeight
-
getResponseFormat
- Specified by:
getResponseFormatin interfaceImageOptions
-
setResponseFormat
-
getSize
-
setSize
-
getUser
-
setUser
-
getQuality
-
setQuality
-
getStyle
- Specified by:
getStylein interfaceImageOptions
-
setStyle
-
equals
-
hashCode
public int hashCode() -
toString
-
toOpenAiImageGenerateParams
public com.openai.models.images.ImageGenerateParams toOpenAiImageGenerateParams(ImagePrompt imagePrompt)
-