Builder
Builder
is a helper class to build a CompletionRequest instance with a stable API. It provides methods for setting the properties fo the CompletionRequest object. The build method returns a new CompletionRequest instance with the specified properties.
Usage:
val completionRequest = CompletionRequest.builder()
.model("davinci")
.prompt("The wheels on the bus go")
.build()
Functions
Sets the best_of option for the CompletionRequest.
Builds the CompletionRequest instance with the provided parameters.
Sets the echo option for the CompletionRequest.
Sets the frequency penalty for the CompletionRequest.
Sets the logprobs for the CompletionRequest.
Sets the maximum number of tokens for the CompletionRequest.
Sets the model for the CompletionRequest.
Sets the number of completions for the CompletionRequest.
Sets the presence penalty for the CompletionRequest.
Sets the prompt for the CompletionRequest.
Sets the array of prompts for the CompletionRequest.
Sets the list of prompts for the CompletionRequest.
Sets the stop sequences for the CompletionRequest.
Sets the stream option for the CompletionRequest.
Sets the suffix for the CompletionRequest.
Sets the temperature for the CompletionRequest.
Sets the top_p for the CompletionRequest.
Sets the user identifier for the CompletionRequest.