17 references to Throw
Microsoft.Extensions.AI.OpenAI (17)
OpenAIChatClient.cs (7)
48_ = Throw.IfNull(openAIClient); 49_ = Throw.IfNullOrWhitespace(modelId); 68_ = Throw.IfNull(chatClient); 88set => _toolCallJsonSerializerOptions = Throw.IfNull(value); 97_ = Throw.IfNull(serviceType); 111_ = Throw.IfNull(chatMessages); 202_ = Throw.IfNull(chatMessages);
OpenAIEmbeddingGenerator.cs (6)
41_ = Throw.IfNull(openAIClient); 42_ = Throw.IfNullOrWhitespace(modelId); 45Throw.ArgumentOutOfRangeException(nameof(dimensions), "Value must be greater than 0."); 68_ = Throw.IfNull(embeddingClient); 71Throw.ArgumentOutOfRangeException(nameof(dimensions), "Value must be greater than 0."); 101_ = Throw.IfNull(serviceType);
OpenAIRealtimeExtensions.cs (4)
30_ = Throw.IfNull(aiFunction); 75_ = Throw.IfNull(session); 76_ = Throw.IfNull(update); 77_ = Throw.IfNull(tools);