Package org.springframework.ai.openai
Class OpenAiChatOptions.Builder
java.lang.Object
org.springframework.ai.openai.OpenAiChatOptions.Builder
- Enclosing class:
OpenAiChatOptions
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
withFrequencyPenalty
(Float frequencyPenalty) withFunction
(String functionName) withFunctionCallbacks
(List<FunctionCallback> functionCallbacks) withFunctions
(Set<String> functionNames) withLogitBias
(Map<String, Integer> logitBias) withMaxTokens
(Integer maxTokens) withPresencePenalty
(Float presencePenalty) withResponseFormat
(OpenAiApi.ChatCompletionRequest.ResponseFormat responseFormat) withTemperature
(Float temperature) withToolChoice
(String toolChoice) withTools
(List<OpenAiApi.FunctionTool> tools)
-
Field Details
-
options
-
-
Constructor Details
-
Builder
public Builder() -
Builder
-
-
Method Details
-
withModel
-
withFrequencyPenalty
-
withLogitBias
-
withMaxTokens
-
withN
-
withPresencePenalty
-
withResponseFormat
public OpenAiChatOptions.Builder withResponseFormat(OpenAiApi.ChatCompletionRequest.ResponseFormat responseFormat) -
withSeed
-
withStop
-
withTemperature
-
withTopP
-
withTools
-
withToolChoice
-
withUser
-
withFunctionCallbacks
-
withFunctions
-
withFunction
-
build
-