ChatResponse
data class ChatResponse(val model: String, val createdAt: Instant, val message: Message, val done: Boolean, val doneReason: String? = null, val totalDuration: Long? = null, val loadDuration: Long? = null, val promptEvalCount: Int? = null, val promptEvalDuration: Long? = null, val evalCount: Int? = null, val evalDuration: Long? = null)(source)
Represents a response from the chat completion endpoint.
Properties
Link copied to clipboard
Timestamp when the response was created
Link copied to clipboard
Link copied to clipboard
Number of tokens in the response
Link copied to clipboard
Time spent generating the response (in nanoseconds)
Link copied to clipboard
Time spent loading the model (in nanoseconds)
Link copied to clipboard
Number of tokens in the prompt
Link copied to clipboard
Time spent evaluating the prompt (in nanoseconds)
Link copied to clipboard
Time spent generating the response (in nanoseconds)