19 references to Throw
Microsoft.Extensions.AI.OpenAI (19)
OpenAIChatClient.cs (5)
51
_ =
Throw
.IfNull(chatClient);
70
_ =
Throw
.IfNull(serviceType);
84
_ =
Throw
.IfNull(messages);
99
_ =
Throw
.IfNull(messages);
406
_ =
Throw
.IfNull(openAICompletion);
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)
45
_ =
Throw
.IfNull(responseClient);
64
_ =
Throw
.IfNull(serviceType);
78
_ =
Throw
.IfNull(messages);
151
_ =
Throw
.IfNull(messages);
OpenAISpeechToTextClient.cs (7)
39
_ =
Throw
.IfNull(audioClient);
58
_ =
Throw
.IfNull(serviceType);
72
_ =
Throw
.IfNull(audioSpeechStream);
86
_ =
Throw
.IfNull(audioSpeechStream);
97
_ =
Throw
.IfNull(options);
152
_ =
Throw
.IfNull(audioTranscription);
199
_ =
Throw
.IfNull(audioTranslation);