OpenAIUsage
class OpenAIUsage(val promptTokens: Int? = null, val completionTokens: Int? = null, val totalTokens: Int? = null, val completionTokensDetails: CompletionTokensDetails? = null, val promptTokensDetails: PromptTokensDetails? = null)(source)
Constructors
Link copied to clipboard
constructor(promptTokens: Int? = null, completionTokens: Int? = null, totalTokens: Int? = null, completionTokensDetails: CompletionTokensDetails? = null, promptTokensDetails: PromptTokensDetails? = null)
Properties
Link copied to clipboard
Number of tokens in the generated completion.
Link copied to clipboard
Breakdown of tokens used in a completion.
Link copied to clipboard
Number of tokens in the prompt.
Link copied to clipboard
Breakdown of tokens used in the prompt.
Link copied to clipboard
Total number of tokens used in the request (prompt + completion).