10 references to Throw
Microsoft.Extensions.AI.AzureAIInference (10)
AzureAIInferenceChatClient.cs (6)
41
_ =
Throw
.IfNull(chatCompletionsClient);
44
_ =
Throw
.IfNullOrWhitespace(modelId);
63
set => _toolCallJsonSerializerOptions =
Throw
.IfNull(value);
72
_ =
Throw
.IfNull(serviceType);
85
_ =
Throw
.IfNull(chatMessages);
150
_ =
Throw
.IfNull(chatMessages);
AzureAIInferenceEmbeddingGenerator.cs (4)
44
_ =
Throw
.IfNull(embeddingsClient);
48
_ =
Throw
.IfNullOrWhitespace(modelId);
53
Throw
.ArgumentOutOfRangeException(nameof(dimensions), "Value must be greater than 0.");
75
_ =
Throw
.IfNull(serviceType);