7 references to AsChatClient
Microsoft.Extensions.AI.OpenAI.Tests (7)
OpenAIChatClientIntegrationTests.cs (1)
12
?.
AsChatClient
(Environment.GetEnvironmentVariable("OPENAI_CHAT_MODEL") ?? "gpt-4o-mini");
OpenAIChatClientTests.cs (6)
40
Assert.Throws<ArgumentNullException>("openAIClient", () => ((OpenAIClient)null!).
AsChatClient
("model"));
44
Assert.Throws<ArgumentNullException>("modelId", () => client.
AsChatClient
(null!));
45
Assert.Throws<ArgumentException>("modelId", () => client.
AsChatClient
(" "));
60
IChatClient chatClient = client.
AsChatClient
(model);
75
IChatClient chatClient = openAIClient.
AsChatClient
("model");
590
.
AsChatClient
(modelId);