Compartilhar via


AIInferenceModelFactory.EmbeddingsUsage(Int32, Int32) Method

Definition

Initializes a new instance of EmbeddingsUsage.

public static Azure.AI.Inference.EmbeddingsUsage EmbeddingsUsage (int promptTokens = 0, int totalTokens = 0);
static member EmbeddingsUsage : int * int -> Azure.AI.Inference.EmbeddingsUsage
Public Shared Function EmbeddingsUsage (Optional promptTokens As Integer = 0, Optional totalTokens As Integer = 0) As EmbeddingsUsage

Parameters

promptTokens
Int32

Number of tokens in the request.

totalTokens
Int32

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

Returns

A new EmbeddingsUsage instance for mocking.

Applies to