Completion

@JsonSerializable
data class Completion(val prompt: Prompt, val presence_penalty: Double = 0.0, val frequency_penalty: Double = 0.0, val temperature: Temperature = Temperature.ONE, val stream: Boolean = false, val max_tokens: MaxTokens? = null, val seed: Integer? = null, val stop: List<String>? = null, val n: Integer? = null, val top_p: Double = 1.0) : ModelCompletion

Constructors

Link copied to clipboard
constructor(prompt: Prompt, max_tokens: MaxTokens, stream: Boolean = true)
constructor(prompt: Prompt, presence_penalty: Double = 0.0, frequency_penalty: Double = 0.0, temperature: Temperature = Temperature.ONE, stream: Boolean = false, max_tokens: MaxTokens? = null, seed: Integer? = null, stop: List<String>? = null, n: Integer? = null, top_p: Double = 1.0)

Properties

Link copied to clipboard
Link copied to clipboard
val max_tokens: MaxTokens? = null
Link copied to clipboard
val n: Integer? = null
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val seed: Integer? = null
Link copied to clipboard
val stop: List<String>? = null
Link copied to clipboard
open override val stream: Boolean = false
Link copied to clipboard
Link copied to clipboard
val top_p: Double = 1.0

Functions

Link copied to clipboard
open override fun content(): List<Message>
Link copied to clipboard
open override fun toRequest(): Request
Link copied to clipboard
open override fun toResult(response: Response): Result<Sequence<CompletionResponse>, RemoteFailure>