Class AzureOpenAiChatOptions.Builder
java.lang.Object
org.springframework.ai.azure.openai.AzureOpenAiChatOptions.Builder
- Enclosing class:
- AzureOpenAiChatOptions
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
deploymentName
(String deploymentName) enhancements
(com.azure.ai.openai.models.AzureChatEnhancementConfiguration enhancements) frequencyPenalty
(Double frequencyPenalty) functionCallbacks
(List<FunctionCallback> functionCallbacks) presencePenalty
(Double presencePenalty) proxyToolCalls
(Boolean proxyToolCalls) responseFormat
(AzureOpenAiResponseFormat responseFormat) streamOptions
(com.azure.ai.openai.models.ChatCompletionStreamOptions streamOptions) temperature
(Double temperature) toolContext
(Map<String, Object> toolContext) topLogprobs
(Integer topLogprobs) withDeploymentName
(String deploymentName) Deprecated, for removal: This API element is subject to removal in a future version.withEnhancements
(com.azure.ai.openai.models.AzureChatEnhancementConfiguration enhancements) Deprecated, for removal: This API element is subject to removal in a future version.useenhancements(AzureChatEnhancementConfiguration)
)} instead.withFrequencyPenalty
(Double frequencyPenalty) Deprecated, for removal: This API element is subject to removal in a future version.usefrequencyPenalty(Double)
instead.withFunction
(String functionName) Deprecated, for removal: This API element is subject to removal in a future version.usefunction(String)
instead.withFunctionCallbacks
(List<FunctionCallback> functionCallbacks) Deprecated, for removal: This API element is subject to removal in a future version.usefunctionCallbacks(List)
instead.withFunctions
(Set<String> functionNames) Deprecated, for removal: This API element is subject to removal in a future version.usefunctions(Set)
instead.withLogitBias
(Map<String, Integer> logitBias) Deprecated, for removal: This API element is subject to removal in a future version.uselogitBias(Map)
instead.withLogprobs
(Boolean logprobs) Deprecated, for removal: This API element is subject to removal in a future version.uselogprobs(Boolean)
instead.withMaxTokens
(Integer maxTokens) Deprecated, for removal: This API element is subject to removal in a future version.usemaxTokens(Integer)
instead.Deprecated, for removal: This API element is subject to removal in a future version.useN(Integer)
instead.withPresencePenalty
(Double presencePenalty) Deprecated, for removal: This API element is subject to removal in a future version.usepresencePenalty(Double)
instead.withProxyToolCalls
(Boolean proxyToolCalls) Deprecated, for removal: This API element is subject to removal in a future version.useproxyToolCalls(Boolean)
instead.withResponseFormat
(AzureOpenAiResponseFormat responseFormat) Deprecated, for removal: This API element is subject to removal in a future version.useresponseFormat(AzureOpenAiResponseFormat)
instead.Deprecated, for removal: This API element is subject to removal in a future version.useseed(Long)
instead.Deprecated, for removal: This API element is subject to removal in a future version.usestop(List)
instead.withStreamOptions
(com.azure.ai.openai.models.ChatCompletionStreamOptions streamOptions) Deprecated, for removal: This API element is subject to removal in a future version.usestreamOptions(ChatCompletionStreamOptions)
instead.withTemperature
(Double temperature) Deprecated, for removal: This API element is subject to removal in a future version.usetemperature(Double)
instead.withToolContext
(Map<String, Object> toolContext) Deprecated, for removal: This API element is subject to removal in a future version.usetoolContext(Map)
instead.withTopLogprobs
(Integer topLogprobs) Deprecated, for removal: This API element is subject to removal in a future version.usetopLogprobs(Integer)
instead.Deprecated, for removal: This API element is subject to removal in a future version.usetopP(Double)
instead.Deprecated, for removal: This API element is subject to removal in a future version.useuser(String)
instead.
-
Field Details
-
options
-
-
Constructor Details
-
Builder
public Builder() -
Builder
-
-
Method Details
-
deploymentName
-
frequencyPenalty
-
logitBias
-
maxTokens
-
N
-
presencePenalty
-
stop
-
temperature
-
topP
-
user
-
functionCallbacks
-
functions
-
function
-
responseFormat
-
proxyToolCalls
-
seed
-
logprobs
-
topLogprobs
-
enhancements
public AzureOpenAiChatOptions.Builder enhancements(com.azure.ai.openai.models.AzureChatEnhancementConfiguration enhancements) -
toolContext
-
streamOptions
public AzureOpenAiChatOptions.Builder streamOptions(com.azure.ai.openai.models.ChatCompletionStreamOptions streamOptions) -
withDeploymentName
@Deprecated(forRemoval=true, since="1.0.0-M5") public AzureOpenAiChatOptions.Builder withDeploymentName(String deploymentName) Deprecated, for removal: This API element is subject to removal in a future version.usedeploymentName(String)
instead. -
withFrequencyPenalty
@Deprecated(forRemoval=true, since="1.0.0-M5") public AzureOpenAiChatOptions.Builder withFrequencyPenalty(Double frequencyPenalty) Deprecated, for removal: This API element is subject to removal in a future version.usefrequencyPenalty(Double)
instead. -
withLogitBias
@Deprecated(forRemoval=true, since="1.0.0-M5") public AzureOpenAiChatOptions.Builder withLogitBias(Map<String, Integer> logitBias) Deprecated, for removal: This API element is subject to removal in a future version.uselogitBias(Map)
instead. -
withMaxTokens
@Deprecated(forRemoval=true, since="1.0.0-M5") public AzureOpenAiChatOptions.Builder withMaxTokens(Integer maxTokens) Deprecated, for removal: This API element is subject to removal in a future version.usemaxTokens(Integer)
instead. -
withN
@Deprecated(forRemoval=true, since="1.0.0-M5") public AzureOpenAiChatOptions.Builder withN(Integer n) Deprecated, for removal: This API element is subject to removal in a future version.useN(Integer)
instead. -
withPresencePenalty
@Deprecated(forRemoval=true, since="1.0.0-M5") public AzureOpenAiChatOptions.Builder withPresencePenalty(Double presencePenalty) Deprecated, for removal: This API element is subject to removal in a future version.usepresencePenalty(Double)
instead. -
withStop
@Deprecated(forRemoval=true, since="1.0.0-M5") public AzureOpenAiChatOptions.Builder withStop(List<String> stop) Deprecated, for removal: This API element is subject to removal in a future version.usestop(List)
instead. -
withTemperature
@Deprecated(forRemoval=true, since="1.0.0-M5") public AzureOpenAiChatOptions.Builder withTemperature(Double temperature) Deprecated, for removal: This API element is subject to removal in a future version.usetemperature(Double)
instead. -
withTopP
@Deprecated(forRemoval=true, since="1.0.0-M5") public AzureOpenAiChatOptions.Builder withTopP(Double topP) Deprecated, for removal: This API element is subject to removal in a future version.usetopP(Double)
instead. -
withUser
@Deprecated(forRemoval=true, since="1.0.0-M5") public AzureOpenAiChatOptions.Builder withUser(String user) Deprecated, for removal: This API element is subject to removal in a future version.useuser(String)
instead. -
withFunctionCallbacks
@Deprecated(forRemoval=true, since="1.0.0-M5") public AzureOpenAiChatOptions.Builder withFunctionCallbacks(List<FunctionCallback> functionCallbacks) Deprecated, for removal: This API element is subject to removal in a future version.usefunctionCallbacks(List)
instead. -
withFunctions
@Deprecated(forRemoval=true, since="1.0.0-M5") public AzureOpenAiChatOptions.Builder withFunctions(Set<String> functionNames) Deprecated, for removal: This API element is subject to removal in a future version.usefunctions(Set)
instead. -
withFunction
@Deprecated(forRemoval=true, since="1.0.0-M5") public AzureOpenAiChatOptions.Builder withFunction(String functionName) Deprecated, for removal: This API element is subject to removal in a future version.usefunction(String)
instead. -
withResponseFormat
@Deprecated(forRemoval=true, since="1.0.0-M5") public AzureOpenAiChatOptions.Builder withResponseFormat(AzureOpenAiResponseFormat responseFormat) Deprecated, for removal: This API element is subject to removal in a future version.useresponseFormat(AzureOpenAiResponseFormat)
instead. -
withProxyToolCalls
@Deprecated(forRemoval=true, since="1.0.0-M5") public AzureOpenAiChatOptions.Builder withProxyToolCalls(Boolean proxyToolCalls) Deprecated, for removal: This API element is subject to removal in a future version.useproxyToolCalls(Boolean)
instead. -
withSeed
@Deprecated(forRemoval=true, since="1.0.0-M5") public AzureOpenAiChatOptions.Builder withSeed(Long seed) Deprecated, for removal: This API element is subject to removal in a future version.useseed(Long)
instead. -
withLogprobs
@Deprecated(forRemoval=true, since="1.0.0-M5") public AzureOpenAiChatOptions.Builder withLogprobs(Boolean logprobs) Deprecated, for removal: This API element is subject to removal in a future version.uselogprobs(Boolean)
instead. -
withTopLogprobs
@Deprecated(forRemoval=true, since="1.0.0-M5") public AzureOpenAiChatOptions.Builder withTopLogprobs(Integer topLogprobs) Deprecated, for removal: This API element is subject to removal in a future version.usetopLogprobs(Integer)
instead. -
withEnhancements
@Deprecated(forRemoval=true, since="1.0.0-M5") public AzureOpenAiChatOptions.Builder withEnhancements(com.azure.ai.openai.models.AzureChatEnhancementConfiguration enhancements) Deprecated, for removal: This API element is subject to removal in a future version.useenhancements(AzureChatEnhancementConfiguration)
)} instead. -
withToolContext
@Deprecated(forRemoval=true, since="1.0.0-M5") public AzureOpenAiChatOptions.Builder withToolContext(Map<String, Object> toolContext) Deprecated, for removal: This API element is subject to removal in a future version.usetoolContext(Map)
instead. -
withStreamOptions
@Deprecated(forRemoval=true, since="1.0.0-M5") public AzureOpenAiChatOptions.Builder withStreamOptions(com.azure.ai.openai.models.ChatCompletionStreamOptions streamOptions) Deprecated, for removal: This API element is subject to removal in a future version.usestreamOptions(ChatCompletionStreamOptions)
instead. -
build
-
deploymentName(String)
instead.