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()
frequencyPenalty
(Double frequencyPenalty) functionCallbacks
(List<FunctionCallback> functionCallbacks) httpHeaders
(Map<String, String> httpHeaders) maxCompletionTokens
(Integer maxCompletionTokens) model
(OpenAiApi.ChatModel openAiChatModel) outputModalities
(List<String> modalities) parallelToolCalls
(Boolean parallelToolCalls) presencePenalty
(Double presencePenalty) proxyToolCalls
(Boolean proxyToolCalls) responseFormat
(ResponseFormat responseFormat) streamUsage
(boolean enableStreamUsage) temperature
(Double temperature) toolChoice
(Object toolChoice) toolContext
(Map<String, Object> toolContext) tools
(List<OpenAiApi.FunctionTool> tools) topLogprobs
(Integer topLogprobs)
-
Field Details
-
options
-
-
Constructor Details
-
Builder
public Builder() -
Builder
-
-
Method Details
-
model
-
model
-
frequencyPenalty
-
logitBias
-
logprobs
-
topLogprobs
-
maxTokens
-
maxCompletionTokens
-
N
-
outputModalities
-
outputAudio
-
presencePenalty
-
responseFormat
-
streamUsage
-
seed
-
stop
-
temperature
-
topP
-
tools
-
toolChoice
-
user
-
parallelToolCalls
-
functionCallbacks
-
functions
-
function
-
proxyToolCalls
-
httpHeaders
-
toolContext
-
build
-