Package org.springframework.ai.openai
Class OpenAiChatOptions.Builder
java.lang.Object
org.springframework.ai.openai.OpenAiChatOptions.Builder
- Enclosing class:
- OpenAiChatOptions
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()withFrequencyPenalty(Double frequencyPenalty) withFunction(String functionName) withFunctionCallbacks(List<FunctionCallback> functionCallbacks) withFunctions(Set<String> functionNames) withHttpHeaders(Map<String, String> httpHeaders) withLogitBias(Map<String, Integer> logitBias) withLogprobs(Boolean logprobs) withMaxCompletionTokens(Integer maxCompletionTokens) withMaxTokens(Integer maxTokens) withModel(OpenAiApi.ChatModel openAiChatModel) withParallelToolCalls(Boolean parallelToolCalls) withPresencePenalty(Double presencePenalty) withProxyToolCalls(Boolean proxyToolCalls) withResponseFormat(ResponseFormat responseFormat) withStreamUsage(boolean enableStreamUsage) withTemperature(Double temperature) withToolChoice(String toolChoice) withToolContext(Map<String, Object> toolContext) withTools(List<OpenAiApi.FunctionTool> tools) withTopLogprobs(Integer topLogprobs)
-
Field Details
-
options
-
-
Constructor Details
-
Builder
public Builder() -
Builder
-
-
Method Details
-
withModel
-
withModel
-
withFrequencyPenalty
-
withLogitBias
-
withLogprobs
-
withTopLogprobs
-
withMaxTokens
-
withMaxCompletionTokens
-
withN
-
withPresencePenalty
-
withResponseFormat
-
withStreamUsage
-
withSeed
-
withStop
-
withTemperature
-
withTopP
-
withTools
-
withToolChoice
-
withUser
-
withParallelToolCalls
-
withFunctionCallbacks
-
withFunctions
-
withFunction
-
withProxyToolCalls
-
withHttpHeaders
-
withToolContext
-
build
-