Skip to content

Commit

Permalink
chore(internal): fix import
Browse files Browse the repository at this point in the history
  • Loading branch information
RobertCraigie authored and stainless-app[bot] committed Jan 23, 2025
1 parent da63d89 commit 20a6c6e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/internal/decoders/jsonl.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { AnthropicError } from '../../error';
import { readableStreamAsyncIterable } from '../../streaming';
import { ReadableStreamToAsyncIterable } from '../stream-utils';
import { type Response } from '../../_shims/index';
import { LineDecoder, type Bytes } from './line';

Expand Down Expand Up @@ -36,6 +36,6 @@ export class JSONLDecoder<T> {
throw new AnthropicError(`Attempted to iterate over a response with no body`);
}

return new JSONLDecoder(readableStreamAsyncIterable<Bytes>(response.body), controller);
return new JSONLDecoder(ReadableStreamToAsyncIterable<Bytes>(response.body), controller);
}
}

0 comments on commit 20a6c6e

Please sign in to comment.