Condividi tramite


EmbeddingsUsage Class

Definition

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

public class EmbeddingsUsage : System.ClientModel.Primitives.IJsonModel<Azure.AI.Inference.EmbeddingsUsage>, System.ClientModel.Primitives.IPersistableModel<Azure.AI.Inference.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 in the request.

TotalTokens

Total number of tokens transacted in this request/response. Should equal the number of tokens in the request.

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