From d176cc802bbec6a00b66b283159eb0610a35239a Mon Sep 17 00:00:00 2001 From: Travis Fischer Date: Wed, 1 Feb 2023 18:20:28 -0600 Subject: [PATCH] =?UTF-8?q?=F0=9F=9A=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- legacy/readme.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/legacy/readme.md b/legacy/readme.md index 30d67cab..94454fd4 100644 --- a/legacy/readme.md +++ b/legacy/readme.md @@ -77,7 +77,7 @@ async function example() { } ``` -If you want to track the conversation, use the `conversationId` and `id` in the result object, and pass them to `sendMessage` as `conversationId` and `parentMessageId` respectively. `parentMessageId` is the most important parameter for recalling previous message context. +If you want to track the conversation, you'll need to pass the `parentMessageid` and `conversationid` along as well: ```ts const api = new ChatGPTAPI({ apiKey: process.env.OPENAI_API_KEY })