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
Colabore connosco no GitHub
A origem deste conteúdo pode ser encontrada no GitHub, onde também pode criar e rever problemas e pedidos Pull. Para mais informações, consulte o nosso guia do contribuidor.
Azure SDK for .NET