Class AzureOpenAiChatOptions
java.lang.Object
org.springframework.ai.azure.openai.AzureOpenAiChatOptions
- All Implemented Interfaces:
ChatOptions,FunctionCallingOptions,ModelOptions,ToolCallingChatOptions
The configuration information for a chat completions request. Completions support a
wide variety of tasks and generate text that continues from or "completes" provided
prompt data.
- Author:
- Christian Tzolov, Thomas Vitale, Soby Chacko, Ilayaperumal Gopinathan
-
Nested Class Summary
Nested Classes -
Field Summary
Fields inherited from interface org.springframework.ai.model.tool.ToolCallingChatOptions
DEFAULT_TOOL_EXECUTION_ENABLED -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuilder()copy()static AzureOpenAiChatOptionsfromOptions(AzureOpenAiChatOptions fromOptions) com.azure.ai.openai.models.AzureChatEnhancementConfigurationDeprecated.Deprecated.getModel()getN()Deprecated.getSeed()getStop()com.azure.ai.openai.models.ChatCompletionStreamOptionsgetTopK()getTopP()getUser()voidsetDeploymentName(String deploymentName) voidsetEnhancements(com.azure.ai.openai.models.AzureChatEnhancementConfiguration enhancements) voidsetFrequencyPenalty(Double frequencyPenalty) voidsetFunctionCallbacks(List<FunctionCallback> functionCallbacks) Deprecated.voidsetFunctions(Set<String> functions) voidsetInternalToolExecutionEnabled(Boolean internalToolExecutionEnabled) voidsetLogitBias(Map<String, Integer> logitBias) voidsetLogprobs(Boolean logprobs) voidsetMaxTokens(Integer maxTokens) voidvoidvoidsetPresencePenalty(Double presencePenalty) voidsetProxyToolCalls(Boolean proxyToolCalls) Deprecated.voidsetResponseFormat(AzureOpenAiResponseFormat responseFormat) voidvoidvoidsetStopSequences(List<String> stopSequences) voidsetStreamOptions(com.azure.ai.openai.models.ChatCompletionStreamOptions streamOptions) voidsetTemperature(Double temperature) voidsetToolCallbacks(List<FunctionCallback> toolCallbacks) voidsetToolContext(Map<String, Object> toolContext) voidsetToolNames(Set<String> toolNames) voidsetTopLogProbs(Integer topLogProbs) voidvoid
-
Constructor Details
-
AzureOpenAiChatOptions
public AzureOpenAiChatOptions()
-
-
Method Details
-
getToolCallbacks
- Specified by:
getToolCallbacksin interfaceToolCallingChatOptions
-
setToolCallbacks
- Specified by:
setToolCallbacksin interfaceToolCallingChatOptions
-
getToolNames
- Specified by:
getToolNamesin interfaceToolCallingChatOptions
-
setToolNames
- Specified by:
setToolNamesin interfaceToolCallingChatOptions
-
isInternalToolExecutionEnabled
- Specified by:
isInternalToolExecutionEnabledin interfaceToolCallingChatOptions
-
setInternalToolExecutionEnabled
- Specified by:
setInternalToolExecutionEnabledin interfaceToolCallingChatOptions
-
builder
-
fromOptions
-
getMaxTokens
- Specified by:
getMaxTokensin interfaceChatOptions
-
setMaxTokens
-
getLogitBias
-
setLogitBias
-
getUser
-
setUser
-
getN
-
setN
-
getStopSequences
- Specified by:
getStopSequencesin interfaceChatOptions
-
setStopSequences
-
getStop
-
setStop
-
getPresencePenalty
- Specified by:
getPresencePenaltyin interfaceChatOptions
-
setPresencePenalty
-
getFrequencyPenalty
- Specified by:
getFrequencyPenaltyin interfaceChatOptions
-
setFrequencyPenalty
-
getModel
- Specified by:
getModelin interfaceChatOptions
-
setModel
-
getDeploymentName
-
setDeploymentName
-
getTemperature
- Specified by:
getTemperaturein interfaceChatOptions
-
setTemperature
-
getTopP
- Specified by:
getTopPin interfaceChatOptions
-
setTopP
-
getFunctionCallbacks
Deprecated.- Specified by:
getFunctionCallbacksin interfaceFunctionCallingOptions
-
setFunctionCallbacks
Deprecated.- Specified by:
setFunctionCallbacksin interfaceFunctionCallingOptions
-
getFunctions
Deprecated.- Specified by:
getFunctionsin interfaceFunctionCallingOptions
-
setFunctions
- Specified by:
setFunctionsin interfaceFunctionCallingOptions
-
getResponseFormat
-
setResponseFormat
-
getTopK
- Specified by:
getTopKin interfaceChatOptions
-
getSeed
-
setSeed
-
isLogprobs
-
setLogprobs
-
getTopLogProbs
-
setTopLogProbs
-
getEnhancements
public com.azure.ai.openai.models.AzureChatEnhancementConfiguration getEnhancements() -
setEnhancements
public void setEnhancements(com.azure.ai.openai.models.AzureChatEnhancementConfiguration enhancements) -
getProxyToolCalls
Deprecated.- Specified by:
getProxyToolCallsin interfaceFunctionCallingOptions
-
setProxyToolCalls
Deprecated.- Specified by:
setProxyToolCallsin interfaceFunctionCallingOptions
-
getToolContext
- Specified by:
getToolContextin interfaceFunctionCallingOptions
-
setToolContext
- Specified by:
setToolContextin interfaceFunctionCallingOptions
-
getStreamOptions
public com.azure.ai.openai.models.ChatCompletionStreamOptions getStreamOptions() -
setStreamOptions
public void setStreamOptions(com.azure.ai.openai.models.ChatCompletionStreamOptions streamOptions) -
copy
- Specified by:
copyin interfaceChatOptions
-