@waylaidwanderer/chatgpt-api
Advanced tools
Comparing version 1.12.1 to 1.12.2
{ | ||
"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 @@ }; |
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
206961
373