Class ChatCompletionRequest.Builder
java.lang.Object
dev.langchain4j.model.openai.internal.chat.ChatCompletionRequest.Builder
- Enclosing class:
ChatCompletionRequest
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddAssistantMessage
(String assistantMessage) addSystemMessage
(String systemMessage) addToolMessage
(String toolCallId, String content) addUserMessage
(String userMessage) build()
frequencyPenalty
(Double frequencyPenalty) from
(ChatCompletionRequest instance) functionCall
(FunctionCall functionCall) Deprecated.functionCall
(String functionName) Deprecated.Deprecated.Deprecated.maxCompletionTokens
(Integer maxCompletionTokens) parallelToolCalls
(Boolean parallelToolCalls) presencePenalty
(Double presencePenalty) reasoningEffort
(String reasoningEffort) responseFormat
(ResponseFormat responseFormat) responseFormat
(ResponseFormatType responseFormatType) serviceTier
(String serviceTier) streamOptions
(StreamOptions streamOptions) temperature
(Double temperature) toolChoice
(ToolChoiceMode toolChoiceMode) toolChoice
(Object toolChoice) toolChoice
(String functionName)
-
Constructor Details
-
Method Details
-
from
-
model
-
messages
-
messages
-
addSystemMessage
-
addUserMessage
-
addAssistantMessage
-
addToolMessage
-
temperature
-
topP
-
n
-
stream
-
stop
-
stop
-
maxTokens
-
maxCompletionTokens
-
presencePenalty
-
frequencyPenalty
-
logitBias
-
user
-
responseFormat
-
responseFormat
-
seed
-
tools
-
tools
-
toolChoice
-
toolChoice
-
toolChoice
-
parallelToolCalls
-
store
-
metadata
-
reasoningEffort
-
serviceTier
-
functions
Deprecated. -
functions
Deprecated. -
functionCall
Deprecated. -
functionCall
Deprecated. -
build
-