你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn。
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.