17 references to Throw
Microsoft.Extensions.AI.OpenAI (17)
OpenAIChatClient.cs (7)
48
_ =
Throw
.IfNull(openAIClient);
49
_ =
Throw
.IfNullOrWhitespace(modelId);
68
_ =
Throw
.IfNull(chatClient);
88
set => _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);
45
Throw
.ArgumentOutOfRangeException(nameof(dimensions), "Value must be greater than 0.");
68
_ =
Throw
.IfNull(embeddingClient);
71
Throw
.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);