Choice
@Serializable
A completion generated by GPT-3.
Constructors
Link copied to clipboard
constructor(text: String, index: Int, logprobs: Logprobs? = null, finishReason: FinishReason? = null)
Properties
Link copied to clipboard
The reason the model stopped generating tokens. This will be FinishReason.Stop if the model hit a natural stop point or a provided stop sequence, or FinishReason.Length if the maximum number of tokens specified in the request was reached.
Link copied to clipboard
The log probabilities of the chosen tokens and the top CompletionRequest.logprobs tokens.
Link copied to clipboard
The generated text. Will include the prompt if CompletionRequest.echo is true