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.15 to 1.0.16

2

package.json
{
"name": "openai-streams",
"description": "Streams-first OpenAI API client, written in TypeScript.",
"version": "1.0.15",
"version": "1.0.16",
"license": "MIT",

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

@@ -20,2 +20,12 @@ # OpenAI Streams

### Installation
```bash
yarn add openai-streams
# or
npm i --save openai-streams
```
### Usage

@@ -25,3 +35,3 @@

The runtime will throw if this is not available.
The runtime will throw if it cannot find an API key.

@@ -37,2 +47,4 @@ 2. **Call the API via `await OpenAI(endpoint, params)`.**

```ts
import { OpenAI } from "openai-streams";
export default async function test() {

@@ -46,2 +58,3 @@ const stream = await OpenAI(

max_tokens: 100,
// apiKey: "abc123",
},

@@ -48,0 +61,0 @@ );

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