EmbeddingsUsage interface

Measurement of the amount of tokens used in this request and response.

Properties

promptTokens

Number of tokens sent in the original request.

totalTokens

Total number of tokens transacted in this request/response.

Property Details

promptTokens

Number of tokens sent in the original request.

promptTokens: number

Property Value

number

totalTokens

Total number of tokens transacted in this request/response.

totalTokens: number

Property Value

number