EmbeddingsUsage Class

Definition

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

public class EmbeddingsUsage : System.ClientModel.Primitives.IJsonModel<Azure.AI.OpenAI.EmbeddingsUsage>, System.ClientModel.Primitives.IPersistableModel<Azure.AI.OpenAI.EmbeddingsUsage>
type EmbeddingsUsage = class
    interface IJsonModel<EmbeddingsUsage>
    interface IPersistableModel<EmbeddingsUsage>
Public Class EmbeddingsUsage
Implements IJsonModel(Of EmbeddingsUsage), IPersistableModel(Of EmbeddingsUsage)
Inheritance
EmbeddingsUsage
Implements

Properties

PromptTokens

Number of tokens sent in the original request.

TotalTokens

Total number of tokens transacted in this request/response.

Explicit Interface Implementations

IJsonModel<EmbeddingsUsage>.Create(Utf8JsonReader, ModelReaderWriterOptions)

Reads one JSON value (including objects or arrays) from the provided reader and converts it to a model.

IJsonModel<EmbeddingsUsage>.Write(Utf8JsonWriter, ModelReaderWriterOptions)

Writes the model to the provided Utf8JsonWriter.

IPersistableModel<EmbeddingsUsage>.Create(BinaryData, ModelReaderWriterOptions)

Converts the provided BinaryData into a model.

IPersistableModel<EmbeddingsUsage>.GetFormatFromOptions(ModelReaderWriterOptions)

Gets the data interchange format (JSON, Xml, etc) that the model uses when communicating with the service.

IPersistableModel<EmbeddingsUsage>.Write(ModelReaderWriterOptions)

Writes the model into a BinaryData.

Applies to