Package org.springframework.ai.openai
Class OpenAiChatOptions
java.lang.Object
org.springframework.ai.openai.OpenAiChatOptions
- All Implemented Interfaces:
ChatOptions
,ModelOptions
- Since:
- 0.8.0
- Author:
- Christian Tzolov
-
Nested Class Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic OpenAiChatOptions.Builder
builder()
boolean
getModel()
getN()
getSeed()
getStop()
getTools()
getTopK()
getTopP()
getUser()
int
hashCode()
void
setFrequencyPenalty
(Float frequencyPenalty) void
setFunctionCallbacks
(List<FunctionCallback> functionCallbacks) void
setFunctions
(Set<String> functionNames) void
setLogitBias
(Map<String, Integer> logitBias) void
setMaxTokens
(Integer maxTokens) void
void
void
setPresencePenalty
(Float presencePenalty) void
setResponseFormat
(OpenAiApi.ChatCompletionRequest.ResponseFormat responseFormat) void
void
void
setTemperature
(Float temperature) void
void
setTools
(List<OpenAiApi.FunctionTool> tools) void
void
void
-
Constructor Details
-
OpenAiChatOptions
public OpenAiChatOptions()
-
-
Method Details
-
builder
-
getModel
-
setModel
-
getFrequencyPenalty
-
setFrequencyPenalty
-
getLogitBias
-
setLogitBias
-
getMaxTokens
-
setMaxTokens
-
getN
-
setN
-
getPresencePenalty
-
setPresencePenalty
-
getResponseFormat
-
setResponseFormat
-
getSeed
-
setSeed
-
getStop
-
setStop
-
getTemperature
- Specified by:
getTemperature
in interfaceChatOptions
-
setTemperature
- Specified by:
setTemperature
in interfaceChatOptions
-
getTopP
- Specified by:
getTopP
in interfaceChatOptions
-
setTopP
- Specified by:
setTopP
in interfaceChatOptions
-
getTools
-
setTools
-
getToolChoice
-
setToolChoice
-
getUser
-
setUser
-
getFunctionCallbacks
-
setFunctionCallbacks
-
getFunctions
-
setFunctions
-
hashCode
public int hashCode() -
equals
-
getTopK
- Specified by:
getTopK
in interfaceChatOptions
-
setTopK
- Specified by:
setTopK
in interfaceChatOptions
-