AIInferenceModelFactory.CompletionsUsage(Int32, 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 CompletionsUsage.
public static Azure.AI.Inference.CompletionsUsage CompletionsUsage (int completionTokens = 0, int promptTokens = 0, int totalTokens = 0);
static member CompletionsUsage : int * int * int -> Azure.AI.Inference.CompletionsUsage
Public Shared Function CompletionsUsage (Optional completionTokens As Integer = 0, Optional promptTokens As Integer = 0, Optional totalTokens As Integer = 0) As CompletionsUsage
Parameters
- completionTokens
- Int32
The number of tokens generated across all completions emissions.
- promptTokens
- Int32
The number of tokens in the provided prompts for the completions request.
- totalTokens
- Int32
The total number of tokens processed for the completions request and response.
Returns
A new CompletionsUsage 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