OpenAIEmbeddingUsage

@Serializable
class OpenAIEmbeddingUsage constructor(val promptTokens: Int, val totalTokens: Int)

Usage class for the embedding response from the OpenAI API.

Constructors

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

Properties

Link copied to clipboard

The number of tokens in the prompt.

Link copied to clipboard

The total number of tokens.