openai-streams
Advanced tools
Comparing version 1.0.15 to 1.0.16
{ | ||
"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 @@ ); |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
62465
67
1