Class OpenAiModerationProperties
java.lang.Object
org.springframework.ai.model.openai.autoconfigure.AbstractOpenAiProperties
org.springframework.ai.model.openai.autoconfigure.OpenAiModerationProperties
@ConfigurationProperties("spring.ai.openai.moderation")
public class OpenAiModerationProperties
extends AbstractOpenAiProperties
OpenAI SDK Moderation autoconfiguration properties.
- Author:
- Ahmed Yousri, Ilayaperumal Gopinathan
-
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
Methods 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
-
OpenAiModerationProperties
public OpenAiModerationProperties()
-
-
Method Details
-
getModel
- Overrides:
getModelin classAbstractOpenAiProperties
-
setModel
- Overrides:
setModelin classAbstractOpenAiProperties
-
toOptions
-
getOptions
@DeprecatedConfigurationProperty(replacement="spring.ai.openai.moderation") @Deprecated(since="2.0.0", forRemoval=true) public OpenAiModerationProperties.Options getOptions()Deprecated, for removal: This API element is subject to removal in a future version. -
setOptions
-