Package org.springframework.ai.deepseek
Class DeepSeekChatOptions
java.lang.Object
org.springframework.ai.deepseek.DeepSeekChatOptions
- All Implemented Interfaces:
org.springframework.ai.chat.prompt.ChatOptions,org.springframework.ai.model.ModelOptions,org.springframework.ai.model.tool.ToolCallingChatOptions
public class DeepSeekChatOptions
extends Object
implements org.springframework.ai.model.tool.ToolCallingChatOptions
Chat completions options for the DeepSeek chat API.
DeepSeek
chat completion
- Author:
- Geng Rong
-
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 TypeMethodDescriptionstatic DeepSeekChatOptions.Builderbuilder()copy()booleanstatic DeepSeekChatOptionsfromOptions(DeepSeekChatOptions fromOptions) getModel()getStop()List<org.springframework.ai.tool.ToolCallback>getTools()getTopK()getTopP()inthashCode()voidsetFrequencyPenalty(Double frequencyPenalty) voidsetInternalToolExecutionEnabled(Boolean internalToolExecutionEnabled) voidsetLogprobs(Boolean logprobs) voidsetMaxTokens(Integer maxTokens) voidvoidsetPresencePenalty(Double presencePenalty) voidsetResponseFormat(ResponseFormat responseFormat) voidvoidsetStopSequences(List<String> stopSequences) voidsetTemperature(Double temperature) voidsetToolCallbacks(List<org.springframework.ai.tool.ToolCallback> toolCallbacks) voidsetToolChoice(Object toolChoice) voidsetToolContext(Map<String, Object> toolContext) voidsetToolNames(Set<String> toolNames) voidsetTools(List<DeepSeekApi.FunctionTool> tools) voidsetTopLogprobs(Integer topLogprobs) void
-
Constructor Details
-
DeepSeekChatOptions
public DeepSeekChatOptions()
-
-
Method Details
-
builder
-
getModel
- Specified by:
getModelin interfaceorg.springframework.ai.chat.prompt.ChatOptions
-
setModel
-
getFrequencyPenalty
- Specified by:
getFrequencyPenaltyin interfaceorg.springframework.ai.chat.prompt.ChatOptions
-
setFrequencyPenalty
-
getMaxTokens
- Specified by:
getMaxTokensin interfaceorg.springframework.ai.chat.prompt.ChatOptions
-
setMaxTokens
-
getPresencePenalty
- Specified by:
getPresencePenaltyin interfaceorg.springframework.ai.chat.prompt.ChatOptions
-
setPresencePenalty
-
getResponseFormat
-
setResponseFormat
-
getStopSequences
- Specified by:
getStopSequencesin interfaceorg.springframework.ai.chat.prompt.ChatOptions
-
setStopSequences
-
getStop
-
setStop
-
getTemperature
- Specified by:
getTemperaturein interfaceorg.springframework.ai.chat.prompt.ChatOptions
-
setTemperature
-
getTopP
- Specified by:
getTopPin interfaceorg.springframework.ai.chat.prompt.ChatOptions
-
setTopP
-
getTools
-
setTools
-
getToolChoice
-
setToolChoice
-
getToolCallbacks
- Specified by:
getToolCallbacksin interfaceorg.springframework.ai.model.tool.ToolCallingChatOptions
-
setToolCallbacks
- Specified by:
setToolCallbacksin interfaceorg.springframework.ai.model.tool.ToolCallingChatOptions
-
getToolNames
- Specified by:
getToolNamesin interfaceorg.springframework.ai.model.tool.ToolCallingChatOptions
-
setToolNames
- Specified by:
setToolNamesin interfaceorg.springframework.ai.model.tool.ToolCallingChatOptions
-
getInternalToolExecutionEnabled
- Specified by:
getInternalToolExecutionEnabledin interfaceorg.springframework.ai.model.tool.ToolCallingChatOptions
-
setInternalToolExecutionEnabled
- Specified by:
setInternalToolExecutionEnabledin interfaceorg.springframework.ai.model.tool.ToolCallingChatOptions
-
getLogprobs
-
setLogprobs
-
getTopLogprobs
-
setTopLogprobs
-
getTopK
- Specified by:
getTopKin interfaceorg.springframework.ai.chat.prompt.ChatOptions
-
getToolContext
- Specified by:
getToolContextin interfaceorg.springframework.ai.model.tool.ToolCallingChatOptions
-
setToolContext
- Specified by:
setToolContextin interfaceorg.springframework.ai.model.tool.ToolCallingChatOptions
-
copy
- Specified by:
copyin interfaceorg.springframework.ai.chat.prompt.ChatOptions
-
hashCode
public int hashCode() -
equals
-
fromOptions
-