7 instantiations of OpenAIChatClient
Microsoft.Extensions.AI.OpenAI (2)
OpenAIClientExtensions.cs (2)
18
new
OpenAIChatClient
(openAIClient, modelId);
24
new
OpenAIChatClient
(chatClient);
Microsoft.Extensions.AI.OpenAI.Tests (5)
OpenAIChatClientTests.cs (5)
28
Assert.Throws<ArgumentNullException>("openAIClient", () => new
OpenAIChatClient
(null!, "model"));
29
Assert.Throws<ArgumentNullException>("chatClient", () => new
OpenAIChatClient
(null!));
32
Assert.Throws<ArgumentNullException>("modelId", () => new
OpenAIChatClient
(openAIClient, null!));
33
Assert.Throws<ArgumentException>("modelId", () => new
OpenAIChatClient
(openAIClient, ""));
34
Assert.Throws<ArgumentException>("modelId", () => new
OpenAIChatClient
(openAIClient, " "));
3 references to OpenAIChatClient
Microsoft.Extensions.AI.OpenAI (2)
OpenAIChatClient.cs (2)
35
/// <summary>Initializes a new instance of the <see cref="
OpenAIChatClient
"/> class for the specified <see cref="OpenAIClient"/>.</summary>
57
/// <summary>Initializes a new instance of the <see cref="
OpenAIChatClient
"/> class for the specified <see cref="ChatClient"/>.</summary>
Microsoft.Extensions.AI.OpenAI.Tests (1)
OpenAIChatClientTests.cs (1)
93
Assert.Same(chatClient, chatClient.GetService<
OpenAIChatClient
>());