diff --git a/src/libs/Ollama/OllamaApiClientExtensions.cs b/src/libs/Ollama/OllamaApiClientExtensions.cs index 544aefb..5730db7 100644 --- a/src/libs/Ollama/OllamaApiClientExtensions.cs +++ b/src/libs/Ollama/OllamaApiClientExtensions.cs @@ -158,23 +158,23 @@ public static TaskAwaiter GetAwaiter( /// /// /// - public static async Task> WaitAsync( - this IAsyncEnumerable enumerable) + public static async Task> WaitAsync( + this IAsyncEnumerable enumerable) { enumerable = enumerable ?? throw new ArgumentNullException(nameof(enumerable)); - var responses = new List(); + var responses = new List(); await foreach (var response in enumerable.ConfigureAwait(false)) { responses.Add(response); } - + return responses; } - - /// - public static TaskAwaiter> GetAwaiter( - this IAsyncEnumerable enumerable) + + /// + public static TaskAwaiter> GetAwaiter( + this IAsyncEnumerable enumerable) { enumerable = enumerable ?? throw new ArgumentNullException(nameof(enumerable));