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

@waylaidwanderer/chatgpt-api

Package Overview
Dependencies
Maintainers
1
Versions
168
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@waylaidwanderer/chatgpt-api - npm Package Compare versions

Comparing version 1.0.1 to 1.0.2

2

package.json
{
"name": "@waylaidwanderer/chatgpt-api",
"version": "1.0.1",
"version": "1.0.2",
"description": "A ChatGPT implementation using the official ChatGPT model via OpenAI's API.",

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

@@ -8,3 +8,3 @@ # ChatGPT API Server

This is an implementation of [ChatGPT](https://chat.openai.com/chat) using the (unofficial) official ChatGPT model, `text-chat-davinci-002-20230126`. This model name was briefly leaked while I was inspecting the network requests made by the official ChatGPT website, and I discovered that it works with the [OpenAI API](https://beta.openai.com/docs/api-reference/completions). **Usage of this model currently does not cost any credits.**
This is an implementation of [ChatGPT](https://chat.openai.com/chat) using the official ChatGPT raw model, `text-chat-davinci-002-20230126`. This model name was briefly leaked while I was inspecting the network requests made by the official ChatGPT website, and I discovered that it works with the [OpenAI API](https://beta.openai.com/docs/api-reference/completions). **Usage of this model currently does not cost any credits.**

@@ -18,3 +18,3 @@ As far as I'm aware, I was the first one who discovered this, and usage of the model has since been implemented in libraries like [acheong08/ChatGPT](https://github.com/acheong08/ChatGPT).

## Features
- Uses the unofficial official ChatGPT model, `text-chat-davinci-002-20230126`.
- Uses the official ChatGPT raw model, `text-chat-davinci-002-20230126`.
- Includes an API server you can run to use ChatGPT in non-Node.js applications.

@@ -80,3 +80,3 @@ - Includes a `ChatGPTClient` class that you can use in your own Node.js applications.

Alternatively, you can install the package locally and run it using `node index.js`:
Alternatively, you can install and run the package locally:
1. Clone this repository

@@ -83,0 +83,0 @@ 2. Install dependencies with `npm install`

@@ -51,6 +51,4 @@ import fetch from 'node-fetch';

) {
const {
conversationId = crypto.randomUUID(),
parentMessageId = crypto.randomUUID(),
} = opts;
const conversationId = opts.conversationId || crypto.randomUUID();
const parentMessageId = opts.parentMessageId || crypto.randomUUID();

@@ -57,0 +55,0 @@ let conversation = await this.conversationsCache.get(conversationId);

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