InferenceModelFactory.MultimodalEmbeddingUsage 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.
Usage for a multimodal embedding operation.
public static Azure.Data.AI.MultimodalEmbeddingUsage MultimodalEmbeddingUsage(long? promptTokens = default, long? totalTokens = default, long? textTokens = default, int imageCount = 0, long? visualTokens = default);
static member MultimodalEmbeddingUsage : Nullable<int64> * Nullable<int64> * Nullable<int64> * int * Nullable<int64> -> Azure.Data.AI.MultimodalEmbeddingUsage
Public Shared Function MultimodalEmbeddingUsage (Optional promptTokens As Nullable(Of Long) = Nothing, Optional totalTokens As Nullable(Of Long) = Nothing, Optional textTokens As Nullable(Of Long) = Nothing, Optional imageCount As Integer = 0, Optional visualTokens As Nullable(Of Long) = Nothing) As MultimodalEmbeddingUsage
Parameters
Tokens that aren't image tokens: the query and text items (including the query instruction) and the short prompt
the model adds around each image. Equal to promptTokens minus visualTokens, so text and image tokens can be
priced separately. Omitted when the split isn't known: promptTokens isn't reported, or the request has images
and visualTokens isn't reported.
- imageCount
- Int32
The number of images embedded.
Returns
A new MultimodalEmbeddingUsage instance for mocking.