10 references to Throw
Microsoft.Extensions.AI.AzureAIInference (10)
AzureAIInferenceChatClient.cs (6)
41_ = Throw.IfNull(chatCompletionsClient); 44_ = Throw.IfNullOrWhitespace(modelId); 63set => _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); 53Throw.ArgumentOutOfRangeException(nameof(dimensions), "Value must be greater than 0."); 75_ = Throw.IfNull(serviceType);