AIProjectsModelFactory.RunCompletionUsage(Int64, Int64, Int64) 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 RunCompletionUsage.
public static Azure.AI.Projects.RunCompletionUsage RunCompletionUsage (long completionTokens = 0, long promptTokens = 0, long totalTokens = 0);
static member RunCompletionUsage : int64 * int64 * int64 -> Azure.AI.Projects.RunCompletionUsage
Public Shared Function RunCompletionUsage (Optional completionTokens As Long = 0, Optional promptTokens As Long = 0, Optional totalTokens As Long = 0) As RunCompletionUsage
Parameters
- completionTokens
- Int64
Number of completion tokens used over the course of the run.
- promptTokens
- Int64
Number of prompt tokens used over the course of the run.
- totalTokens
- Int64
Total number of tokens used (prompt + completion).
Returns
A new RunCompletionUsage instance for mocking.
Applies to
Collaborer avec nous sur GitHub
La source de ce contenu se trouve sur GitHub, où vous pouvez également créer et examiner les problèmes et les demandes de tirage. Pour plus d’informations, consultez notre guide du contributeur.
Azure SDK for .NET