Saltar para o conteúdo principal
Versão: 21 R3 BETA

OpenAIEmbeddingsResult

Inherits

Propriedades calculadas

PropriedadeTipoDescrição
modelTextReturns the model used to compute the embedding
vector4D.VectorReturns the first 4D.Vector from the vectors collection.
vectorsCollectionReturns a collection of 4D.Vector.
embeddingOpenAIEmbeddingReturns the first OpenAIEmbedding from the embeddings collection.
embeddingsCollectionReturns a collection of OpenAIEmbedding.
utilizaçãoObjectReturns token usage information (inherited from OpenAIResult).

utilização

The usage property returns an object containing token usage information for embeddings.

CampoTipoDescrição
prompt_tokensIntegerNumber of tokens in the input text(s).
total_tokensIntegerTotal tokens used (same as prompt_tokens for embeddings).

Example response:

{
"prompt_tokens": 8,
"total_tokens": 8
}

Note: Embeddings only consume prompt tokens (there is no completion), so total_tokens equals prompt_tokens.

Veja também