Class OpenAiChatProperties.Options
java.lang.Object
org.springframework.ai.model.openai.autoconfigure.OpenAiChatProperties.Options
- Enclosing class:
- OpenAiChatProperties
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription@Nullable StringDeprecated, for removal: This API element is subject to removal in a future version.@Nullable StringDeprecated, for removal: This API element is subject to removal in a future version.@Nullable com.openai.credential.CredentialDeprecated, for removal: This API element is subject to removal in a future version.Deprecated, for removal: This API element is subject to removal in a future version.@Nullable StringDeprecated, for removal: This API element is subject to removal in a future version.Deprecated, for removal: This API element is subject to removal in a future version.@Nullable DoubleDeprecated, for removal: This API element is subject to removal in a future version.@Nullable BooleanDeprecated, for removal: This API element is subject to removal in a future version.Deprecated, for removal: This API element is subject to removal in a future version.@Nullable BooleanDeprecated, for removal: This API element is subject to removal in a future version.@Nullable IntegerDeprecated, for removal: This API element is subject to removal in a future version.@Nullable IntegerDeprecated, for removal: This API element is subject to removal in a future version.@Nullable IntegerDeprecated, for removal: This API element is subject to removal in a future version.Deprecated, for removal: This API element is subject to removal in a future version.@Nullable StringDeprecated, for removal: This API element is subject to removal in a future version.@Nullable BooleanDeprecated, for removal: This API element is subject to removal in a future version.@Nullable com.openai.azure.AzureOpenAIServiceVersionDeprecated, for removal: This API element is subject to removal in a future version.@Nullable StringgetModel()Deprecated, for removal: This API element is subject to removal in a future version.@Nullable IntegergetN()Deprecated, for removal: This API element is subject to removal in a future version.@Nullable StringDeprecated, for removal: This API element is subject to removal in a future version.@Nullable OpenAiChatOptions.AudioParametersDeprecated, for removal: This API element is subject to removal in a future version.Deprecated, for removal: This API element is subject to removal in a future version.@Nullable BooleanDeprecated, for removal: This API element is subject to removal in a future version.@Nullable DoubleDeprecated, for removal: This API element is subject to removal in a future version.@Nullable StringDeprecated, for removal: This API element is subject to removal in a future version.@Nullable ProxygetProxy()Deprecated, for removal: This API element is subject to removal in a future version.@Nullable StringDeprecated, for removal: This API element is subject to removal in a future version.@Nullable OpenAiChatModel.ResponseFormatDeprecated, for removal: This API element is subject to removal in a future version.@Nullable IntegergetSeed()Deprecated, for removal: This API element is subject to removal in a future version.@Nullable StringDeprecated, for removal: This API element is subject to removal in a future version.getStop()Deprecated, for removal: This API element is subject to removal in a future version.@Nullable BooleangetStore()Deprecated, for removal: This API element is subject to removal in a future version.@Nullable OpenAiChatOptions.StreamOptionsDeprecated, for removal: This API element is subject to removal in a future version.@Nullable DoubleDeprecated, for removal: This API element is subject to removal in a future version.@Nullable DurationDeprecated, for removal: This API element is subject to removal in a future version.@Nullable ObjectDeprecated, for removal: This API element is subject to removal in a future version.@Nullable IntegerDeprecated, for removal: This API element is subject to removal in a future version.@Nullable DoublegetTopP()Deprecated, for removal: This API element is subject to removal in a future version.@Nullable StringgetUser()Deprecated, for removal: This API element is subject to removal in a future version.@Nullable StringDeprecated, for removal: This API element is subject to removal in a future version.voidvoidsetBaseUrl(@Nullable String baseUrl) voidsetCredential(@Nullable com.openai.credential.Credential credential) voidsetCustomHeaders(@Nullable Map<String, String> customHeaders) voidsetDeploymentName(@Nullable String azureDeploymentName) voidsetExtraBody(@Nullable Map<String, Object> extraBody) voidsetFrequencyPenalty(@Nullable Double frequencyPenalty) voidsetGitHubModels(@Nullable Boolean gitHubModels) voidsetLogitBias(@Nullable Map<String, Integer> logitBias) voidsetLogprobs(@Nullable Boolean logprobs) voidsetMaxCompletionTokens(@Nullable Integer maxCompletionTokens) voidsetMaxRetries(@Nullable Integer maxRetries) voidsetMaxTokens(@Nullable Integer maxTokens) voidsetMetadata(@Nullable Map<String, String> metadata) voidsetMicrosoftDeploymentName(@Nullable String microsoftDeploymentName) voidsetMicrosoftFoundry(@Nullable Boolean microsoftFoundry) voidsetMicrosoftFoundryServiceVersion(@Nullable com.openai.azure.AzureOpenAIServiceVersion microsoftFoundryServiceVersion) voidvoidvoidsetOrganizationId(@Nullable String organizationId) voidsetOutputAudio(@Nullable OpenAiChatOptions.AudioParameters outputAudio) voidsetOutputModalities(@Nullable List<String> outputModalities) voidsetParallelToolCalls(@Nullable Boolean parallelToolCalls) voidsetPresencePenalty(@Nullable Double presencePenalty) voidsetPromptCacheKey(@Nullable String promptCacheKey) voidvoidsetReasoningEffort(@Nullable String reasoningEffort) voidsetResponseFormat(@Nullable OpenAiChatModel.ResponseFormat responseFormat) voidvoidsetServiceTier(@Nullable String serviceTier) voidvoidvoidsetStreamOptions(@Nullable OpenAiChatOptions.StreamOptions streamOptions) voidsetTemperature(@Nullable Double temperature) voidsetTimeout(@Nullable Duration timeout) voidsetToolChoice(@Nullable Object toolChoice) voidsetTopLogprobs(@Nullable Integer topLogprobs) voidvoidvoidsetVerbosity(@Nullable String verbosity)
-
Constructor Details
-
Options
public Options()
-
-
Method Details
-
getBaseUrl
@DeprecatedConfigurationProperty(replacement="spring.ai.openai.base-url") @Deprecated(since="2.0.0", forRemoval=true) public @Nullable String getBaseUrl()Deprecated, for removal: This API element is subject to removal in a future version. -
setBaseUrl
-
getApiKey
@DeprecatedConfigurationProperty(replacement="spring.ai.openai.api-key") @Deprecated(since="2.0.0", forRemoval=true) public @Nullable String getApiKey()Deprecated, for removal: This API element is subject to removal in a future version. -
setApiKey
-
getCredential
@DeprecatedConfigurationProperty(replacement="spring.ai.openai.credential") @Deprecated(since="2.0.0", forRemoval=true) public @Nullable com.openai.credential.Credential getCredential()Deprecated, for removal: This API element is subject to removal in a future version. -
setCredential
public void setCredential(@Nullable com.openai.credential.Credential credential) -
getMicrosoftDeploymentName
@DeprecatedConfigurationProperty(replacement="spring.ai.openai.microsoft-deployment-name") @Deprecated(since="2.0.0", forRemoval=true) public @Nullable String getMicrosoftDeploymentName()Deprecated, for removal: This API element is subject to removal in a future version. -
setMicrosoftDeploymentName
-
getDeploymentName
@DeprecatedConfigurationProperty(replacement="spring.ai.openai.deployment-name") @Deprecated(since="2.0.0", forRemoval=true) public @Nullable String getDeploymentName()Deprecated, for removal: This API element is subject to removal in a future version. -
setDeploymentName
-
getMicrosoftFoundryServiceVersion
@DeprecatedConfigurationProperty(replacement="spring.ai.openai.microsoft-foundry-service-version") @Deprecated(since="2.0.0", forRemoval=true) public @Nullable com.openai.azure.AzureOpenAIServiceVersion getMicrosoftFoundryServiceVersion()Deprecated, for removal: This API element is subject to removal in a future version. -
setMicrosoftFoundryServiceVersion
public void setMicrosoftFoundryServiceVersion(@Nullable com.openai.azure.AzureOpenAIServiceVersion microsoftFoundryServiceVersion) -
getOrganizationId
@DeprecatedConfigurationProperty(replacement="spring.ai.openai.organization-id") @Deprecated(since="2.0.0", forRemoval=true) public @Nullable String getOrganizationId()Deprecated, for removal: This API element is subject to removal in a future version. -
setOrganizationId
-
getMicrosoftFoundry
@DeprecatedConfigurationProperty(replacement="spring.ai.openai.microsoft-foundry") @Deprecated(since="2.0.0", forRemoval=true) public @Nullable Boolean getMicrosoftFoundry()Deprecated, for removal: This API element is subject to removal in a future version. -
setMicrosoftFoundry
-
getGitHubModels
@DeprecatedConfigurationProperty(replacement="spring.ai.openai.git-hub-models") @Deprecated(since="2.0.0", forRemoval=true) public @Nullable Boolean getGitHubModels()Deprecated, for removal: This API element is subject to removal in a future version. -
setGitHubModels
-
getTimeout
@DeprecatedConfigurationProperty(replacement="spring.ai.openai.timeout") @Deprecated(since="2.0.0", forRemoval=true) public @Nullable Duration getTimeout()Deprecated, for removal: This API element is subject to removal in a future version. -
setTimeout
-
getMaxRetries
@DeprecatedConfigurationProperty(replacement="spring.ai.openai.max-retries") @Deprecated(since="2.0.0", forRemoval=true) public @Nullable Integer getMaxRetries()Deprecated, for removal: This API element is subject to removal in a future version. -
setMaxRetries
-
getProxy
@DeprecatedConfigurationProperty(replacement="spring.ai.openai.proxy") @Deprecated(since="2.0.0", forRemoval=true) public @Nullable Proxy getProxy()Deprecated, for removal: This API element is subject to removal in a future version. -
setProxy
-
getCustomHeaders
@DeprecatedConfigurationProperty(replacement="spring.ai.openai.custom-headers") @Deprecated(since="2.0.0", forRemoval=true) public @Nullable Map<String,String> getCustomHeaders()Deprecated, for removal: This API element is subject to removal in a future version. -
setCustomHeaders
-
getModel
@DeprecatedConfigurationProperty(replacement="spring.ai.openai.chat.model") @Deprecated(since="2.0.0", forRemoval=true) public @Nullable String getModel()Deprecated, for removal: This API element is subject to removal in a future version. -
setModel
-
getFrequencyPenalty
@DeprecatedConfigurationProperty(replacement="spring.ai.openai.chat.frequency-penalty") @Deprecated(since="2.0.0", forRemoval=true) public @Nullable Double getFrequencyPenalty()Deprecated, for removal: This API element is subject to removal in a future version. -
setFrequencyPenalty
-
getLogitBias
@DeprecatedConfigurationProperty(replacement="spring.ai.openai.chat.logit-bias") @Deprecated(since="2.0.0", forRemoval=true) public @Nullable Map<String,Integer> getLogitBias()Deprecated, for removal: This API element is subject to removal in a future version. -
setLogitBias
-
getLogprobs
@DeprecatedConfigurationProperty(replacement="spring.ai.openai.chat.logprobs") @Deprecated(since="2.0.0", forRemoval=true) public @Nullable Boolean getLogprobs()Deprecated, for removal: This API element is subject to removal in a future version. -
setLogprobs
-
getTopLogprobs
@DeprecatedConfigurationProperty(replacement="spring.ai.openai.chat.top-logprobs") @Deprecated(since="2.0.0", forRemoval=true) public @Nullable Integer getTopLogprobs()Deprecated, for removal: This API element is subject to removal in a future version. -
setTopLogprobs
-
getMaxTokens
@DeprecatedConfigurationProperty(replacement="spring.ai.openai.chat.max-tokens") @Deprecated(since="2.0.0", forRemoval=true) public @Nullable Integer getMaxTokens()Deprecated, for removal: This API element is subject to removal in a future version. -
setMaxTokens
-
getMaxCompletionTokens
@DeprecatedConfigurationProperty(replacement="spring.ai.openai.chat.max-completion-tokens") @Deprecated(since="2.0.0", forRemoval=true) public @Nullable Integer getMaxCompletionTokens()Deprecated, for removal: This API element is subject to removal in a future version. -
setMaxCompletionTokens
-
getN
@DeprecatedConfigurationProperty(replacement="spring.ai.openai.chat.n") @Deprecated(since="2.0.0", forRemoval=true) public @Nullable Integer getN()Deprecated, for removal: This API element is subject to removal in a future version. -
setN
-
getOutputModalities
@DeprecatedConfigurationProperty(replacement="spring.ai.openai.chat.output-modalities") @Deprecated(since="2.0.0", forRemoval=true) public @Nullable List<String> getOutputModalities()Deprecated, for removal: This API element is subject to removal in a future version. -
setOutputModalities
-
getOutputAudio
@DeprecatedConfigurationProperty(replacement="spring.ai.openai.chat.output-audio") @Deprecated(since="2.0.0", forRemoval=true) public @Nullable OpenAiChatOptions.AudioParameters getOutputAudio()Deprecated, for removal: This API element is subject to removal in a future version. -
setOutputAudio
-
getPresencePenalty
@DeprecatedConfigurationProperty(replacement="spring.ai.openai.chat.presence-penalty") @Deprecated(since="2.0.0", forRemoval=true) public @Nullable Double getPresencePenalty()Deprecated, for removal: This API element is subject to removal in a future version. -
setPresencePenalty
-
getResponseFormat
@DeprecatedConfigurationProperty(replacement="spring.ai.openai.chat.response-format") @Deprecated(since="2.0.0", forRemoval=true) public @Nullable OpenAiChatModel.ResponseFormat getResponseFormat()Deprecated, for removal: This API element is subject to removal in a future version. -
setResponseFormat
-
getStreamOptions
@DeprecatedConfigurationProperty(replacement="spring.ai.openai.chat.stream-options") @Deprecated(since="2.0.0", forRemoval=true) public @Nullable OpenAiChatOptions.StreamOptions getStreamOptions()Deprecated, for removal: This API element is subject to removal in a future version. -
setStreamOptions
-
getSeed
@DeprecatedConfigurationProperty(replacement="spring.ai.openai.chat.seed") @Deprecated(since="2.0.0", forRemoval=true) public @Nullable Integer getSeed()Deprecated, for removal: This API element is subject to removal in a future version. -
setSeed
-
getStop
@DeprecatedConfigurationProperty(replacement="spring.ai.openai.chat.stop") @Deprecated(since="2.0.0", forRemoval=true) public @Nullable List<String> getStop()Deprecated, for removal: This API element is subject to removal in a future version. -
setStop
-
getTemperature
@DeprecatedConfigurationProperty(replacement="spring.ai.openai.chat.temperature") @Deprecated(since="2.0.0", forRemoval=true) public @Nullable Double getTemperature()Deprecated, for removal: This API element is subject to removal in a future version. -
setTemperature
-
getTopP
@DeprecatedConfigurationProperty(replacement="spring.ai.openai.chat.top-p") @Deprecated(since="2.0.0", forRemoval=true) public @Nullable Double getTopP()Deprecated, for removal: This API element is subject to removal in a future version. -
setTopP
-
getToolChoice
@DeprecatedConfigurationProperty(replacement="spring.ai.openai.chat.tool-choice") @Deprecated(since="2.0.0", forRemoval=true) public @Nullable Object getToolChoice()Deprecated, for removal: This API element is subject to removal in a future version. -
setToolChoice
-
getUser
@DeprecatedConfigurationProperty(replacement="spring.ai.openai.chat.user") @Deprecated(since="2.0.0", forRemoval=true) public @Nullable String getUser()Deprecated, for removal: This API element is subject to removal in a future version. -
setUser
-
getParallelToolCalls
@DeprecatedConfigurationProperty(replacement="spring.ai.openai.chat.parallel-tool-calls") @Deprecated(since="2.0.0", forRemoval=true) public @Nullable Boolean getParallelToolCalls()Deprecated, for removal: This API element is subject to removal in a future version. -
setParallelToolCalls
-
getStore
@DeprecatedConfigurationProperty(replacement="spring.ai.openai.chat.store") @Deprecated(since="2.0.0", forRemoval=true) public @Nullable Boolean getStore()Deprecated, for removal: This API element is subject to removal in a future version. -
setStore
-
getMetadata
@DeprecatedConfigurationProperty(replacement="spring.ai.openai.chat.metadata") @Deprecated(since="2.0.0", forRemoval=true) public @Nullable Map<String,String> getMetadata()Deprecated, for removal: This API element is subject to removal in a future version. -
setMetadata
-
getReasoningEffort
@DeprecatedConfigurationProperty(replacement="spring.ai.openai.chat.reasoning-effort") @Deprecated(since="2.0.0", forRemoval=true) public @Nullable String getReasoningEffort()Deprecated, for removal: This API element is subject to removal in a future version. -
setReasoningEffort
-
getVerbosity
@DeprecatedConfigurationProperty(replacement="spring.ai.openai.chat.verbosity") @Deprecated(since="2.0.0", forRemoval=true) public @Nullable String getVerbosity()Deprecated, for removal: This API element is subject to removal in a future version. -
setVerbosity
-
getServiceTier
@DeprecatedConfigurationProperty(replacement="spring.ai.openai.chat.service-tier") @Deprecated(since="2.0.0", forRemoval=true) public @Nullable String getServiceTier()Deprecated, for removal: This API element is subject to removal in a future version. -
setServiceTier
-
getPromptCacheKey
@DeprecatedConfigurationProperty(replacement="spring.ai.openai.chat.prompt-cache-key") @Deprecated(since="2.0.0", forRemoval=true) public @Nullable String getPromptCacheKey()Deprecated, for removal: This API element is subject to removal in a future version. -
setPromptCacheKey
-
getExtraBody
@DeprecatedConfigurationProperty(replacement="spring.ai.openai.chat.extra-body") @Deprecated(since="2.0.0", forRemoval=true) public @Nullable Map<String,Object> getExtraBody()Deprecated, for removal: This API element is subject to removal in a future version. -
setExtraBody
-