@waylaidwanderer/chatgpt-api
Advanced tools
Comparing version 1.0.1 to 1.0.2
{ | ||
"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); |
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
20540
218