13 references to AsIChatClient
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 (10)
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 (1)
46
IChatClient client = new OpenAIClient(new ApiKeyCredential("k")).GetResponsesClient().
AsIChatClient
("m");
OpenAIResponseClientIntegrationTests.cs (1)
24
.
AsIChatClient
(TestRunnerConfiguration.Instance["OpenAI:ChatModel"] ?? "gpt-4o-mini");
OpenAIResponseClientTests.cs (5)
32
Assert.Throws<ArgumentNullException>("responseClient", () => ((ResponsesClient)null!).
AsIChatClient
());
43
IChatClient chatClient = client.GetResponsesClient().
AsIChatClient
(model);
54
IChatClient chatClient = openAIClient.
AsIChatClient
("model");
6770
.
AsIChatClient
("gpt-4o-mini")
6869
.
AsIChatClient
(modelId);