Skip to content

@chinmaymk/aikit v0.0.40


@chinmaymk/aikit / EmbeddingUsage

Interface: EmbeddingUsage

Defined in: types.ts:191

Usage information for an embedding request. Provides details about token consumption and any truncation that occurred.

Properties

inputTokens?

optional inputTokens: number

Defined in: types.ts:193

The number of tokens in the input text.


totalTokens?

optional totalTokens: number

Defined in: types.ts:195

The total number of tokens used in the request.


truncated?

optional truncated: boolean

Defined in: types.ts:197

Whether the input text was truncated due to length limits.

Released under the MIT License.