21 references to Throw
Microsoft.Extensions.AI.OpenAI (21)
OpenAIChatClient.cs (5)
41
_ =
Throw
.IfNull(chatClient);
60
_ =
Throw
.IfNull(serviceType);
74
_ =
Throw
.IfNull(messages);
89
_ =
Throw
.IfNull(messages);
384
_ =
Throw
.IfNull(openAICompletion);
OpenAIClientExtensions.cs (2)
26
new OpenAIChatClient(
Throw
.IfNull(openAIClient).GetChatClient(modelId));
55
new OpenAIEmbeddingGenerator(
Throw
.IfNull(openAIClient).GetEmbeddingClient(modelId), dimensions);
OpenAIEmbeddingGenerator.cs (3)
41
_ =
Throw
.IfNull(embeddingClient);
44
Throw
.ArgumentOutOfRangeException(nameof(defaultModelDimensions), "Value must be greater than 0.");
95
_ =
Throw
.IfNull(serviceType);
OpenAIResponseChatClient.cs (4)
44
_ =
Throw
.IfNull(responseClient);
63
_ =
Throw
.IfNull(serviceType);
77
_ =
Throw
.IfNull(messages);
150
_ =
Throw
.IfNull(messages);
OpenAISpeechToTextClient.cs (7)
38
_ =
Throw
.IfNull(audioClient);
57
_ =
Throw
.IfNull(serviceType);
71
_ =
Throw
.IfNull(audioSpeechStream);
85
_ =
Throw
.IfNull(audioSpeechStream);
96
_ =
Throw
.IfNull(options);
151
_ =
Throw
.IfNull(audioTranscription);
225
_ =
Throw
.IfNull(audioTranslation);