EmbeddingsUsage

data class EmbeddingsUsage(val promptTokens: Int, val totalTokens: Int)

Holds the number of tokens used by the API request. Exact pricing can vary based on the model used.

Constructors

Link copied to clipboard
constructor(promptTokens: Int, totalTokens: Int)

Properties

Link copied to clipboard

How many tokens were taken by the input strings

Link copied to clipboard

The total number of tokens used