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.12.1 to 1.12.2

2

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

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

@@ -251,3 +251,4 @@ <p align="center">

#### Usage
To start a conversation with ChatGPT, send a POST request to the server's `/conversation` endpoint with a JSON body in the following format:
To start a conversation with ChatGPT, send a POST request to the server's `/conversation` endpoint with a JSON body in the following format.
Optional parameters are only necessary for conversations that span multiple requests:
```JSON

@@ -257,3 +258,6 @@ {

"conversationId": "your-conversation-id (optional)",
"parentMessageId": "your-parent-message-id (optional)"
"parentMessageId": "your-parent-message-id (optional, for `ChatGPTClient` only)",
"conversationSignature": "your-conversation-signature (optional, for `BingAIClient` only)",
"clientId": "your-client-id (optional, for `BingAIClient` only)",
"invocationId": "your-invocation-id (optional, for `BingAIClient` only)",
}

@@ -267,3 +271,7 @@ ```

"conversationId": "your-conversation-id",
"messageId": "response-message-id"
"messageId": "response-message-id (for `ChatGPTClient` only)",
"conversationSignature": "your-conversation-signature (for `BingAIClient` only)",
"clientId": "your-client-id (for `BingAIClient` only)",
"invocationId": "your-invocation-id (for `BingAIClient` only - pass this new value back into subsequent requests as-is)",
"details": "additional details about the AI's response (for `BingAIClient` only)"
}

@@ -270,0 +278,0 @@ ```

@@ -215,3 +215,3 @@ import './fetch-polyfill.js';

conversationExpiryTime,
reply: reply.text,
response: reply.text,
details: reply,

@@ -218,0 +218,0 @@ };

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