10 references to Throw
Microsoft.Extensions.AI.AzureAIInference (10)
AzureAIInferenceChatClient.cs (6)
46
_ =
Throw
.IfNull(chatCompletionsClient);
50
_ =
Throw
.IfNullOrWhitespace(modelId);
69
set => _toolCallJsonSerializerOptions =
Throw
.IfNull(value);
75
_ =
Throw
.IfNull(serviceType);
89
_ =
Throw
.IfNull(messages);
143
_ =
Throw
.IfNull(messages);
AzureAIInferenceEmbeddingGenerator.cs (4)
50
_ =
Throw
.IfNull(embeddingsClient);
54
_ =
Throw
.IfNullOrWhitespace(modelId);
59
Throw
.ArgumentOutOfRangeException(nameof(dimensions), "Value must be greater than 0.");
78
_ =
Throw
.IfNull(serviceType);