AIInferenceModelFactory.EmbeddingsUsage(Int32, Int32) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
Colaborar conosco no GitHub
A fonte deste conteúdo pode ser encontrada no GitHub, onde você também pode criar e revisar problemas e solicitações de pull. Para obter mais informações, confira o nosso guia para colaboradores.
Azure SDK for .NET