openai-streams
Advanced tools
Comparing version 1.0.22-canary.14 to 1.0.22-canary.16
{ | ||
"name": "openai-streams", | ||
"description": "Tools for working with OpenAI streams in Node.js and TypeScript.", | ||
"version": "1.0.22-canary.14", | ||
"version": "1.0.22-canary.16", | ||
"license": "MIT", | ||
@@ -6,0 +6,0 @@ "type": "module", |
@@ -10,3 +10,3 @@ # OpenAI Streams | ||
Now supports WHATWG *and* Node.js streams via `OpenAI()` and `OpenAI.Node()`. | ||
Now supports WHATWG *and* Node.js streams for full Next.js API Route support. | ||
@@ -27,5 +27,3 @@ It simplifies the following: | ||
yarn add openai-streams | ||
# or | ||
# -or- | ||
npm i --save openai-streams | ||
@@ -60,3 +58,3 @@ ``` | ||
#### Example: Consuming streams in Next.js Edge functions | ||
#### Edge/Browser: Consuming streams in Next.js Edge functions | ||
@@ -85,3 +83,3 @@ ```ts | ||
### Example: Consuming streams using Next.js API Route (Node) | ||
### Node: Consuming streams in Next.js API Route (Node) | ||
@@ -88,0 +86,0 @@ If you cannot use an Edge runtime or want to consume Node.js streams for another |
64929
113