7 instantiations of OpenAIChatClient
Microsoft.Extensions.AI.OpenAI (2)
OpenAIClientExtensions.cs (2)
18new OpenAIChatClient(openAIClient, modelId); 24new OpenAIChatClient(chatClient);
Microsoft.Extensions.AI.OpenAI.Tests (5)
OpenAIChatClientTests.cs (5)
28Assert.Throws<ArgumentNullException>("openAIClient", () => new OpenAIChatClient(null!, "model")); 29Assert.Throws<ArgumentNullException>("chatClient", () => new OpenAIChatClient(null!)); 32Assert.Throws<ArgumentNullException>("modelId", () => new OpenAIChatClient(openAIClient, null!)); 33Assert.Throws<ArgumentException>("modelId", () => new OpenAIChatClient(openAIClient, "")); 34Assert.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)
93Assert.Same(chatClient, chatClient.GetService<OpenAIChatClient>());