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 5.1.1 to 5.1.2-canary.0

29

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

@@ -24,26 +24,25 @@ "type": "module",

"scripts": {
"canary": "yarn build && yarn version --prerelease --preid=canary && npm publish --tag canary",
"dev": "tsmodule dev",
"docs": "yarn typedoc src",
"build": "tsmodule build",
"postbuild": "yarn docs",
"test": "yarn build && ava",
"export-docs": "pnpm typedoc src",
"export": "tsmodule build",
"build": "pnpm export && pnpm export-docs",
"test": "pnpm export && ava",
"retest": "ava",
"prepublishOnly": "yarn test",
"prepublishOnly": "pnpm test",
"lint": "eslint src --fix"
},
"devDependencies": {
"@tsmodule/tsmodule": "^42.1.0",
"@types/node": "^18.14.4",
"@typescript-eslint/eslint-plugin": "^5.54.0",
"@typescript-eslint/parser": "^5.54.0",
"@tsmodule/tsmodule": "^44.5.0",
"@types/node": "^20.1.1",
"@typescript-eslint/eslint-plugin": "^5.59.5",
"@typescript-eslint/parser": "^5.59.5",
"ava": "^5.2.0",
"eslint": "^8.35.0",
"eslint": "^8.40.0",
"openai": "^3.2.1",
"typedoc": "^0.23.26",
"typescript": "^4.9.5"
"typedoc": "^0.24.7",
"typescript": "^5.0.4"
},
"dependencies": {
"dotenv": "^16.0.3",
"eventsource-parser": "^0.1.0",
"eventsource-parser": "^1.0.0",
"yield-stream": "^3.0.0"

@@ -50,0 +49,0 @@ },

@@ -126,6 +126,4 @@ # OpenAI Streams

<sub>See the example in
[`example/src/pages/api/hello.ts`](https://github.com/SpellcraftAI/openai-streams/blob/master/src/pages/api/hello.ts).</sub>
<sub>See also
[`src/pages/api/demo.ts`](https://github.com/SpellcraftAI/nextjs-openai/blob/master/src/pages/api/demo.ts)
in `nextjs-openai`.</sub>
[`example/src/pages/api/hello.ts`](https://github.com/SpellcraftAI/openai-streams/blob/master/example/src/pages/api/hello.ts).</sub>
<sub>

@@ -174,2 +172,2 @@ #### Use with ChatGPT API

(const chunk of yieldStream(stream)) { ... }`. We recommend following this
pattern if you find it intuitive.
pattern if you find it intuitive.
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