17 references to AsIChatClient
Aspire.Azure.AI.Extensions.OpenAI.Tests (1)
AspireAzureProjectOpenAIExtensionsTests.cs (1)
452
.GetProjectResponsesClientForModel("chat").
AsIChatClient
();
DotNetHostedAgent (1)
Program.cs (1)
60
var searchAgent = responseClient.
AsIChatClient
(deploymentName).AsAIAgent(Environment.GetEnvironmentVariable("SEARCHAGENT_AGENTNAME"), description: "I can search the web.");
Microsoft.Extensions.AI.OpenAI (3)
MicrosoftExtensionsAIResponsesExtensions.cs (3)
129
/// The <see cref="IChatClient"/> returned by <see cref="OpenAIClientExtensions.
AsIChatClient
(ResponsesClient, string)"/> will
145
/// <see cref="OpenAIClientExtensions.
AsIChatClient
(ResponsesClient, string)"/> (or <see cref="IChatClient"/>s that delegate
154
/// the <see cref="IChatClient"/> returned by <see cref="OpenAIClientExtensions.
AsIChatClient
(ResponsesClient, string)"/> will
Microsoft.Extensions.AI.OpenAI.Tests (12)
OpenAIHostedFileClientIntegrationTests.cs (3)
275
.
AsIChatClient
(TestRunnerConfiguration.Instance["OpenAI:ChatModel"] ?? "gpt-4o-mini");
341
.
AsIChatClient
(TestRunnerConfiguration.Instance["OpenAI:ChatModel"] ?? "gpt-4o-mini");
391
.
AsIChatClient
(TestRunnerConfiguration.Instance["OpenAI:ChatModel"] ?? "gpt-4o-mini");
OpenAIRequestPoliciesTests.cs (2)
46
IChatClient client = new OpenAIClient(new ApiKeyCredential("k")).GetResponsesClient().
AsIChatClient
("m");
107
using IChatClient client = new OpenAIClient(new ApiKeyCredential("k"), options).GetResponsesClient().
AsIChatClient
("gpt-4o-mini");
OpenAIResponseClientIntegrationTests.cs (1)
24
.
AsIChatClient
(TestRunnerConfiguration.Instance["OpenAI:ChatModel"] ?? "gpt-4o-mini");
OpenAIResponseClientTests.cs (6)
32
Assert.Throws<ArgumentNullException>("responseClient", () => ((ResponsesClient)null!).
AsIChatClient
());
38
using IChatClient client = new OpenAIClient(new ApiKeyCredential("key")).GetResponsesClient().
AsIChatClient
("model");
51
IChatClient chatClient = client.GetResponsesClient().
AsIChatClient
(model);
62
IChatClient chatClient = openAIClient.
AsIChatClient
("model");
7257
.
AsIChatClient
("gpt-4o-mini")
7356
.
AsIChatClient
(modelId);