File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed
App/kernel-memory/extensions/Anthropic Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change 55using System . Net . Http ;
66using System . Runtime . CompilerServices ;
77using System . Threading ;
8+ using System . Threading . Tasks ;
89using Microsoft . Extensions . Logging ;
910using Microsoft . KernelMemory . AI . Anthropic . Client ;
1011using Microsoft . KernelMemory . AI . OpenAI ;
@@ -106,7 +107,7 @@ public async IAsyncEnumerable<string> GenerateTextAsync(
106107
107108 IAsyncEnumerable < StreamingResponseMessage > streamedResponse = this . _client . CallClaudeStreamingAsync ( parameters , cancellationToken ) ;
108109
109- await foreach ( StreamingResponseMessage response in streamedResponse )
110+ await foreach ( StreamingResponseMessage response in streamedResponse . ConfigureAwait ( false ) )
110111 {
111112 //now we simply yield the response
112113 switch ( response )
You can’t perform that action at this time.
0 commit comments