InferenceModelFactory.EmbeddingWarning 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.
Something about a successful multimodal embedding response the caller should know.
public static Azure.Data.AI.EmbeddingWarning EmbeddingWarning(Azure.Data.AI.EmbeddingWarningCode code = default, int? codeNumber = default, int index = 0, long? inputTokens = default, long? tokens = default, string message = default);
static member EmbeddingWarning : Azure.Data.AI.EmbeddingWarningCode * Nullable<int> * int * Nullable<int64> * Nullable<int64> * string -> Azure.Data.AI.EmbeddingWarning
Public Shared Function EmbeddingWarning (Optional code As EmbeddingWarningCode = Nothing, Optional codeNumber As Nullable(Of Integer) = Nothing, Optional index As Integer = 0, Optional inputTokens As Nullable(Of Long) = Nothing, Optional tokens As Nullable(Of Long) = Nothing, Optional message As String = Nothing) As EmbeddingWarning
Parameters
- code
- EmbeddingWarningCode
A machine-readable warning code.
A stable numeric alias of code: 1001 for EMBEDDING_INPUT_TRUNCATED, 1002 for EMBEDDING_SAS_LONG_LIVED.
- index
- Int32
The zero-based position of the item the warning is about, in inputs and data.
- message
- String
A human-readable description that names the item, for example inputs[1].
Returns
A new EmbeddingWarning instance for mocking.