Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

openai-streams

Package Overview
Dependencies
Maintainers
1
Versions
105
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

openai-streams - npm Package Compare versions

Comparing version 1.0.22-canary.16 to 2.0.0

2

package.json
{
"name": "openai-streams",
"description": "Tools for working with OpenAI streams in Node.js and TypeScript.",
"version": "1.0.22-canary.16",
"version": "2.0.0",
"license": "MIT",

@@ -6,0 +6,0 @@ "type": "module",

@@ -10,13 +10,13 @@ # OpenAI Streams

Now supports WHATWG *and* Node.js streams for full Next.js API Route support.
Now supports WHATWG *and* Node.js streams in order to provide full support for
all Next.js API Routes.
It simplifies the following:
1. Prioritizing streaming and type inference.
2. Auto-loads `OPENAI_API_KEY` from `process.env`.
3. Uses the same function for all endpoints, and switches the type based on the
- Prioritizes streams, so you can display a completion as it arrives.
- Auto-loads `OPENAI_API_KEY` from `process.env`.
- Uses the same function for all endpoints, and switches the type based on the
`OpenAI(endpoint, ...)` signature.
Overall, the library aims to make it as simple to call the API as possible and
stream updates in.
get access to a `ReadableStream` (or `NodeJS.Readable` from
`openai-streams/node`).

@@ -23,0 +23,0 @@ ### Installation

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc