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
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsFields inherited from class org.springframework.ai.model.openai.autoconfigure.AbstractOpenAiProperties
DEFAULT_MAX_RETRIES, DEFAULT_TIMEOUT -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription@Nullable Integer@Nullable StringgetModel()@Nullable IntegergetN()Deprecated, for removal: This API element is subject to removal in a future version.@Nullable String@Nullable String@Nullable StringgetSize()@Nullable StringgetStyle()@Nullable StringgetUser()@Nullable IntegergetWidth()voidvoidvoidvoidsetOptions(OpenAiImageProperties.Options options) voidsetQuality(@Nullable String quality) voidsetResponseFormat(@Nullable String responseFormat) voidvoidvoidvoidMethods inherited from class org.springframework.ai.model.openai.autoconfigure.AbstractOpenAiProperties
getApiKey, getBaseUrl, getCredential, getCustomHeaders, getDeploymentName, getMaxRetries, getMicrosoftDeploymentName, getMicrosoftFoundryServiceVersion, getOrganizationId, getProxy, getTimeout, isConnectionPoolMetricsEnabled, isGitHubModels, isMicrosoftFoundry, setApiKey, setBaseUrl, setConnectionPoolMetricsEnabled, setCredential, setCustomHeaders, setDeploymentName, setGitHubModels, setMaxRetries, setMicrosoftDeploymentName, setMicrosoftFoundry, setMicrosoftFoundryServiceVersion, setOrganizationId, setProxy, setTimeout
-
Field Details
-
CONFIG_PREFIX
- See Also:
-
-
Constructor Details
-
OpenAiImageProperties
public OpenAiImageProperties()
-
-
Method Details
-
getModel
- Overrides:
getModelin classAbstractOpenAiProperties
-
setModel
- Overrides:
setModelin classAbstractOpenAiProperties
-
getN
-
setN
-
getWidth
-
setWidth
-
getHeight
-
setHeight
-
getQuality
-
setQuality
-
getResponseFormat
-
setResponseFormat
-
getSize
-
setSize
-
getStyle
-
setStyle
-
getUser
-
setUser
-
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
-