24 references to IfNull
Microsoft.Extensions.AI.OpenAI (24)
OpenAIAssistantClient.cs (4)
51
_assistantClient = Throw.
IfNull
(assistantClient);
52
_assistantId = Throw.
IfNull
(assistantId);
61
_ = Throw.
IfNull
(serviceType);
181
_ = Throw.
IfNull
(chatMessages);
OpenAIChatClient.cs (6)
44
_ = Throw.
IfNull
(openAIClient);
64
_ = Throw.
IfNull
(chatClient);
84
set => _toolCallJsonSerializerOptions = Throw.
IfNull
(value);
90
_ = Throw.
IfNull
(serviceType);
105
_ = Throw.
IfNull
(chatMessages);
120
_ = Throw.
IfNull
(chatMessages);
OpenAIEmbeddingGenerator.cs (3)
44
_ = Throw.
IfNull
(openAIClient);
71
_ = Throw.
IfNull
(embeddingClient);
125
_ = Throw.
IfNull
(serviceType);
OpenAIModelMapper.ChatCompletion.cs (2)
33
_ = Throw.
IfNull
(chatCompletion);
78
_ = Throw.
IfNull
(openAICompletion);
OpenAIRealtimeExtensions.cs (4)
28
_ = Throw.
IfNull
(aiFunction);
64
_ = Throw.
IfNull
(session);
65
_ = Throw.
IfNull
(update);
66
_ = Throw.
IfNull
(tools);
OpenAISerializationHelpers.cs (5)
31
_ = Throw.
IfNull
(stream);
52
_ = Throw.
IfNull
(stream);
53
_ = Throw.
IfNull
(chatCompletion);
75
_ = Throw.
IfNull
(stream);
76
_ = Throw.
IfNull
(streamingChatCompletionUpdates);