Chat
@Serializable
Full chat-completion response from an LLM backend.
Constructors
Link copied to clipboard
constructor(createdAt: String = "", done: Boolean = false, doneReason: String = "", evalCount: Long = 0, evalDuration: Long = 0, loadDuration: Long = 0, logprobs: List<Logprob> = emptyList(), message: Message = Message(content = "default response, probably an error", role = ""), model: String = "", promptEvalCount: Long = 0, promptEvalDuration: Long = 0, totalDuration: Long = 0)
Properties
Link copied to clipboard
Reason the upstream stopped generating ("stop", "length", etc.).
Link copied to clipboard
Wall-clock time in nanoseconds spent evaluating the response.
Link copied to clipboard
Wall-clock time in nanoseconds the model spent loading.
Link copied to clipboard
Number of evaluated tokens in the prompt.
Link copied to clipboard
Wall-clock time in nanoseconds spent evaluating the prompt.
Link copied to clipboard
Total wall-clock time in nanoseconds for the whole request.