Skip to content

Commit 9c4c851

Browse files
committed
fix: Folder name
1 parent afa9d34 commit 9c4c851

File tree

8 files changed

+5
-9
lines changed

8 files changed

+5
-9
lines changed

src/Streaming/index.ts

-6
This file was deleted.

src/fetch/BaseFetch.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
import { AI21Error } from '../errors';
21
import { Stream } from '../streaming';
2+
import { AI21Error } from '../errors';
33
import { FinalRequestOptions, CrossPlatformResponse } from '../types';
44
import { APIResponseProps } from '../types/API';
55

src/fetch/BrowserFetch.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ export class BrowserFetch extends BaseFetch {
88

99
return fetch(url, {
1010
method: options.method,
11-
headers: options?.headers ? options.headers as HeadersInit : undefined,
11+
headers: options?.headers ? (options.headers as HeadersInit) : undefined,
1212
body: options?.body ? JSON.stringify(options.body) : undefined,
1313
signal: controller.signal,
1414
});

src/fetch/NodeFetch.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ export class NodeFetch extends BaseFetch {
99

1010
return nodeFetch(url, {
1111
method: options.method,
12-
headers: options?.headers ? options.headers as Record<string, string> : undefined,
12+
headers: options?.headers ? (options.headers as Record<string, string>) : undefined,
1313
body: options?.body ? JSON.stringify(options.body) : undefined,
1414
});
1515
}
File renamed without changes.
File renamed without changes.
File renamed without changes.

src/streaming/index.ts

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
export { Stream } from './Stream';
2+
export { BrowserSSEDecoder, NodeSSEDecoder, type SSEDecoder } from './SSEDecoder';

0 commit comments

Comments
 (0)