CompletionUsage

constructor(promptTokens: Int, completionTokens: Int, totalTokens: Int)

Parameters

promptTokens

How many tokens the input used.

completionTokens

How many tokens the output used.

totalTokens

How many tokens in total.