fix: cleanup based on copilot review comments

This commit is contained in:
Stevan Freeborn
2025-05-19 15:28:08 -05:00
parent e2d4ee735a
commit 5d4fb290ba
3 changed files with 12 additions and 3 deletions
+1 -1
View File
@@ -303,7 +303,7 @@ public class AnthropicApiClient : IAnthropicApiClient
return AnthropicResult<IAsyncEnumerable<MessageBatchResultItem>>.Success(ReadResultsAsync(), anthropicHeaders);
async IAsyncEnumerable<MessageBatchResultItem> ReadResultsAsync([EnumeratorCancellation] CancellationToken ct = default)
async IAsyncEnumerable<MessageBatchResultItem> ReadResultsAsync()
{
using var responseContent = await response.Content.ReadAsStreamAsync();
using var streamReader = new StreamReader(responseContent);