From b642a00823cd511c3bb8acacc44ed3240219cc90 Mon Sep 17 00:00:00 2001 From: Travis Fischer Date: Wed, 1 Mar 2023 20:51:07 -0600 Subject: [PATCH] fix: bugfix --- legacy/src/chatgpt-api.ts | 4 ---- 1 file changed, 4 deletions(-) diff --git a/legacy/src/chatgpt-api.ts b/legacy/src/chatgpt-api.ts index e23f3306..70b3fa57 100644 --- a/legacy/src/chatgpt-api.ts +++ b/legacy/src/chatgpt-api.ts @@ -145,7 +145,6 @@ export class ChatGPTAPI { * Set `debug: true` in the `ChatGPTAPI` constructor to log more info on the full prompt sent to the OpenAI chat completions API. You can override the `systemMessage` in `opts` to customize the assistant's instructions. * * @param message - The prompt message to send - * @param opts.conversationId - Optional ID of a conversation to continue (defaults to a random UUID) * @param opts.parentMessageId - Optional ID of the previous message in the conversation (defaults to `undefined`) * @param opts.messageId - Optional ID of the message to send (defaults to a random UUID) * @param opts.systemMessage - Optional override for the chat "system message" which acts as instructions to the model (defaults to the ChatGPT system message) @@ -160,7 +159,6 @@ export class ChatGPTAPI { opts: types.SendMessageOptions = {} ): Promise { const { - conversationId = uuidv4(), parentMessageId, messageId = uuidv4(), timeoutMs, @@ -180,7 +178,6 @@ export class ChatGPTAPI { role: 'user', id: messageId, parentMessageId, - conversationId, text } await this._upsertMessage(message) @@ -194,7 +191,6 @@ export class ChatGPTAPI { role: 'assistant', id: uuidv4(), parentMessageId: messageId, - conversationId, text: '' }