pull/291/head
Travis Fischer 2023-02-01 18:20:28 -06:00
rodzic efb1de652b
commit b4315cab6e
1 zmienionych plików z 1 dodań i 1 usunięć

Wyświetl plik

@ -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 })