We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 45236ac commit 04fae0aCopy full SHA for 04fae0a
1 file changed
App/kernel-memory/extensions/Anthropic/AnthropicTextGeneration.cs
@@ -5,6 +5,7 @@
5
using System.Net.Http;
6
using System.Runtime.CompilerServices;
7
using System.Threading;
8
+using System.Threading.Tasks;
9
using Microsoft.Extensions.Logging;
10
using Microsoft.KernelMemory.AI.Anthropic.Client;
11
using Microsoft.KernelMemory.AI.OpenAI;
@@ -106,7 +107,7 @@ public async IAsyncEnumerable<string> GenerateTextAsync(
106
107
108
IAsyncEnumerable<StreamingResponseMessage> streamedResponse = this._client.CallClaudeStreamingAsync(parameters, cancellationToken);
109
- await foreach (StreamingResponseMessage response in streamedResponse)
110
+ await foreach (StreamingResponseMessage response in streamedResponse.ConfigureAwait(false))
111
{
112
//now we simply yield the response
113
switch (response)
0 commit comments