19 references to Throw
Microsoft.Extensions.AI.OpenAI (19)
OpenAIChatClient.cs (5)
50
_ =
Throw
.IfNull(chatClient);
69
_ =
Throw
.IfNull(serviceType);
83
_ =
Throw
.IfNull(messages);
98
_ =
Throw
.IfNull(messages);
405
_ =
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)
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);