8 references to AsIHostedFileClient
Microsoft.Extensions.AI.OpenAI (1)
OpenAIClientExtensions.cs (1)
215/// To access container files, use <see cref="AsIHostedFileClient(ContainerClient, string?)"/> or <see cref="AsIHostedFileClient(OpenAIClient)"/>.
Microsoft.Extensions.AI.OpenAI.Tests (7)
OpenAIHostedFileClientIntegrationTests.cs (3)
270using var containerClient = IntegrationTestHelpers.GetOpenAIClient()!.GetContainerClient().AsIHostedFileClient(); 343using var fileClient = IntegrationTestHelpers.GetOpenAIClient()!.GetContainerClient().AsIHostedFileClient(); 393using var fileClient = IntegrationTestHelpers.GetOpenAIClient()!.GetContainerClient().AsIHostedFileClient();
OpenAIHostedFileClientTests.cs (4)
42Assert.Throws<ArgumentNullException>("containerClient", () => ((ContainerClient)null!).AsIHostedFileClient()); 79using IHostedFileClient fileClient = client.GetContainerClient().AsIHostedFileClient(); 559using IHostedFileClient fileClient = openAIClient.GetContainerClient().AsIHostedFileClient(); 898.AsIHostedFileClient(defaultScope);