Join our webinar on Wednesday, June 26, at 1pm EDTHow Chia Mitigates Risk in the Crypto Industry.Register
Socket
Socket
Sign inDemoInstall

chatgpt-api-free

Package Overview
Dependencies
6
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.0.2 to 1.0.3

4

index.js

@@ -57,4 +57,8 @@ import fetch from 'node-fetch'

if (jsonRes.error) {
throw new Error(`\nAPI Error:\n\nMessage: ${jsonRes.error.message}\nType: ${jsonRes.error.type}\nParam: ${jsonRes.error.param}\nCode: ${jsonRes.error.code}\n\n\n`)
}
return { choices, usage }
}
}

2

package.json
{
"name": "chatgpt-api-free",
"version": "1.0.2",
"version": "1.0.3",
"description": "JS Library for https://github.com/PawanOsman/ChatGPT \n\n Note: this is not compattible with the image generation api, it is only compattible with the text completion and chat completion api",

@@ -5,0 +5,0 @@ "main": "index.js",

SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc