Class OpenAiSdkImageOptions
java.lang.Object
org.springframework.ai.openaisdk.AbstractOpenAiSdkOptions
org.springframework.ai.openaisdk.OpenAiSdkImageOptions
- All Implemented Interfaces:
ImageOptions, ModelOptions
Configuration information for the Image Model implementation using the OpenAI Java SDK.
- Author:
- Julien Dubois
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuilder()booleangetN()getSize()getStyle()getUser()getWidth()inthashCode()voidvoidvoidsetQuality(String quality) voidsetResponseFormat(String responseFormat) voidvoidvoidvoidcom.openai.models.images.ImageGenerateParamstoOpenAiImageGenerateParams(ImagePrompt imagePrompt) toString()Methods inherited from class AbstractOpenAiSdkOptions
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 interface ImageOptions
getModel
-
Field Details
-
DEFAULT_IMAGE_MODEL
-
-
Constructor Details
-
OpenAiSdkImageOptions
public OpenAiSdkImageOptions()
-
-
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
-
toString
-
toOpenAiImageGenerateParams
public com.openai.models.images.ImageGenerateParams toOpenAiImageGenerateParams(ImagePrompt imagePrompt)
-