6 references to OpenAIChatClient
Microsoft.Extensions.AI.OpenAI (1)
OpenAIClientExtensions.cs (1)
18
new
OpenAIChatClient
(openAIClient, modelId);
Microsoft.Extensions.AI.OpenAI.Tests (5)
OpenAIChatClientTests.cs (5)
29
Assert.Throws<ArgumentNullException>("openAIClient", () => new
OpenAIChatClient
(null!, "model"));
33
Assert.Throws<ArgumentNullException>("modelId", () => new
OpenAIChatClient
(openAIClient, null!));
34
Assert.Throws<ArgumentException>("modelId", () => new
OpenAIChatClient
(openAIClient, ""));
35
Assert.Throws<ArgumentException>("modelId", () => new
OpenAIChatClient
(openAIClient, " "));
41
using OpenAIChatClient client =
new
(new("key"), "model");