24 references to IfNull
Microsoft.Extensions.AI.OpenAI (24)
OpenAIAssistantChatClient.cs (2)
52
_client = Throw.
IfNull
(assistantClient);
85
_ = Throw.
IfNull
(messages);
OpenAIChatClient.cs (5)
38
_ = Throw.
IfNull
(chatClient);
57
_ = Throw.
IfNull
(serviceType);
71
_ = Throw.
IfNull
(messages);
86
_ = Throw.
IfNull
(messages);
413
_ = Throw.
IfNull
(openAICompletion);
OpenAIClientExtensions.cs (4)
162
OpenAIChatClient.ToOpenAIChatTool(Throw.
IfNull
(function));
170
OpenAIAssistantChatClient.ToOpenAIAssistantsFunctionToolDefinition(Throw.
IfNull
(function));
177
OpenAIResponseChatClient.ToResponseTool(Throw.
IfNull
(function));
184
OpenAIRealtimeConversationClient.ToOpenAIConversationFunctionTool(Throw.
IfNull
(function));
OpenAIEmbeddingGenerator.cs (2)
41
_ = Throw.
IfNull
(embeddingClient);
95
_ = Throw.
IfNull
(serviceType);
OpenAIResponseChatClient.cs (4)
38
_ = Throw.
IfNull
(responseClient);
57
_ = Throw.
IfNull
(serviceType);
71
_ = Throw.
IfNull
(messages);
153
_ = 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);