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
Collaborate with us on GitHub
The source for this content can be found on GitHub, where you can also create and review issues and pull requests. For more information, see our contributor guide.
Azure SDK for .NET