Interface ChatOptions.Builder
- All Known Subinterfaces:
FunctionCallingOptions.Builder
- All Known Implementing Classes:
DefaultChatOptionsBuilder
,DefaultFunctionCallingOptionsBuilder
- Enclosing interface:
- ChatOptions
public static interface ChatOptions.Builder
Builder for creating
ChatOptions
instance.-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Build theChatOptions
.frequencyPenalty
(Double frequencyPenalty) Builds with the frequency penalty to use for the chat.Builds with the maximum number of tokens to use for the chat.Builds with the model to use for the chat.presencePenalty
(Double presencePenalty) Builds with the presence penalty to use for the chat.stopSequences
(List<String> stopSequences) Builds with the stop sequences to use for the chat.temperature
(Double temperature) Builds with the temperature to use for the chat.Builds with the top K to use for the chat.Builds with the top P to use for the chat.
-
Method Details
-
model
Builds with the model to use for the chat.- Parameters:
model
-- Returns:
- the builder
-
frequencyPenalty
Builds with the frequency penalty to use for the chat.- Parameters:
frequencyPenalty
-- Returns:
- the builder.
-
maxTokens
Builds with the maximum number of tokens to use for the chat.- Parameters:
maxTokens
-- Returns:
- the builder.
-
presencePenalty
Builds with the presence penalty to use for the chat.- Parameters:
presencePenalty
-- Returns:
- the builder.
-
stopSequences
Builds with the stop sequences to use for the chat.- Parameters:
stopSequences
-- Returns:
- the builder.
-
temperature
Builds with the temperature to use for the chat.- Parameters:
temperature
-- Returns:
- the builder.
-
topK
Builds with the top K to use for the chat.- Parameters:
topK
-- Returns:
- the builder.
-
topP
Builds with the top P to use for the chat.- Parameters:
topP
-- Returns:
- the builder.
-
build
ChatOptions build()Build theChatOptions
.- Returns:
- the Chat options.
-