Skip to content

Commit 0c93150

Browse files
committed
chore(examples): remove node-fetch
1 parent a85c176 commit 0c93150

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

examples/stream-to-client-browser.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,8 @@
55
* for easy demo purposes, but simulating use in the browser.
66
*
77
* To run it in a browser application, copy/paste it into a frontend application,
8-
* remove the 'node-fetch' import, and replace `process.stdout.write` with
9-
* a console.log or UI display.
8+
* and replace `process.stdout.write` with a console.log or UI display.
109
*/
11-
import fetch from 'node-fetch';
1210
import { ChatCompletionStream } from 'openai/lib/ChatCompletionStream';
1311

1412
fetch('http://localhost:3000', {

0 commit comments

Comments
 (0)