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)
40Assert.Throws<ArgumentNullException>("openAIClient", () => ((OpenAIClient)null!).AsChatClient("model")); 44Assert.Throws<ArgumentNullException>("modelId", () => client.AsChatClient(null!)); 45Assert.Throws<ArgumentException>("modelId", () => client.AsChatClient(" ")); 60IChatClient chatClient = client.AsChatClient(model); 75IChatClient chatClient = openAIClient.AsChatClient("model"); 590.AsChatClient(modelId);