6 implementations of GenerateAsync
Microsoft.Extensions.AI.Abstractions (1)
Image\DelegatingImageGenerator.cs (1)
44public virtual Task<ImageGenerationResponse> GenerateAsync(
Microsoft.Extensions.AI.Abstractions.Tests (1)
TestImageGenerator.cs (1)
28public Task<ImageGenerationResponse> GenerateAsync(ImageGenerationRequest request, ImageGenerationOptions? options = null, CancellationToken cancellationToken = default)
Microsoft.Extensions.AI.Integration.Tests (2)
ImageGeneratingChatClientIntegrationTests.cs (1)
413public Task<ImageGenerationResponse> GenerateAsync(ImageGenerationRequest request, ImageGenerationOptions? options = null, CancellationToken cancellationToken = default)
test\Libraries\Microsoft.Extensions.AI.Abstractions.Tests\TestImageGenerator.cs (1)
28public Task<ImageGenerationResponse> GenerateAsync(ImageGenerationRequest request, ImageGenerationOptions? options = null, CancellationToken cancellationToken = default)
Microsoft.Extensions.AI.OpenAI (1)
OpenAIImageGenerator.cs (1)
53public async Task<ImageGenerationResponse> GenerateAsync(ImageGenerationRequest request, ImageGenerationOptions? options = null, CancellationToken cancellationToken = default)
Microsoft.Extensions.AI.Tests (1)
test\Libraries\Microsoft.Extensions.AI.Abstractions.Tests\TestImageGenerator.cs (1)
28public Task<ImageGenerationResponse> GenerateAsync(ImageGenerationRequest request, ImageGenerationOptions? options = null, CancellationToken cancellationToken = default)
11 references to GenerateAsync
Microsoft.Extensions.AI (2)
ChatCompletion\ImageGeneratingChatClient.cs (2)
386var response = await _imageGenerator.GenerateAsync(request, options, cancellationToken); 449var response = await _imageGenerator.GenerateAsync(request, _imageGenerationOptions, cancellationToken);
Microsoft.Extensions.AI.Abstractions (6)
Image\DelegatingImageGenerator.cs (1)
47return InnerGenerator.GenerateAsync(request, options, cancellationToken);
Image\ImageGenerationOptions.cs (1)
66/// When <see cref="IImageGenerator.GenerateAsync" /> is invoked with an <see cref="ImageGenerationOptions" />,
Image\ImageGeneratorExtensions.cs (4)
117return generator.GenerateAsync(new ImageGenerationRequest(prompt), options, cancellationToken); 141return generator.GenerateAsync(new ImageGenerationRequest(prompt, originalImages), options, cancellationToken); 165return generator.GenerateAsync(new ImageGenerationRequest(prompt, [originalImage]), options, cancellationToken); 197return generator.GenerateAsync(new ImageGenerationRequest(prompt, [dataContent]), options, cancellationToken);
Microsoft.Extensions.AI.Tests (3)
Image\LoggingImageGeneratorTests.cs (2)
68await generator.GenerateAsync( 117await generator.GenerateAsync(
Image\OpenTelemetryImageGeneratorTests.cs (1)
90await g.GenerateAsync(request, options);