21 references to IfNull
Microsoft.Extensions.AI.OpenAI (21)
OpenAIAssistantChatClient.cs (2)
50
_client = Throw.
IfNull
(assistantClient);
83
_ = Throw.
IfNull
(messages);
OpenAIChatClient.cs (5)
38
_ = Throw.
IfNull
(chatClient);
57
_ = Throw.
IfNull
(serviceType);
71
_ = Throw.
IfNull
(messages);
86
_ = Throw.
IfNull
(messages);
435
_ = Throw.
IfNull
(openAICompletion);
OpenAIClientExtensions.cs (4)
161
OpenAIChatClient.ToOpenAIChatTool(Throw.
IfNull
(function));
168
OpenAIAssistantChatClient.ToOpenAIAssistantsFunctionToolDefinition(Throw.
IfNull
(function));
175
OpenAIResponseChatClient.ToResponseTool(Throw.
IfNull
(function));
182
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);
160
_ = Throw.
IfNull
(messages);
OpenAISpeechToTextClient.cs (4)
40
_ = Throw.
IfNull
(audioClient);
59
_ = Throw.
IfNull
(serviceType);
73
_ = Throw.
IfNull
(audioSpeechStream);
126
_ = Throw.
IfNull
(audioSpeechStream);