diff --git a/utils/openai/chatgpt-api.js b/utils/openai/chatgpt-api.js index 06b50ce..92f45da 100644 --- a/utils/openai/chatgpt-api.js +++ b/utils/openai/chatgpt-api.js @@ -172,7 +172,7 @@ var ChatGPTAPI = /** @class */ (function () { id: uuidv4(), conversationId: conversationId, parentMessageId: messageId, - text: undefined, + text: '', functionCall: undefined, conversation: [] }; diff --git a/utils/openai/chatgpt-api.ts b/utils/openai/chatgpt-api.ts index ca29740..4277199 100644 --- a/utils/openai/chatgpt-api.ts +++ b/utils/openai/chatgpt-api.ts @@ -181,7 +181,7 @@ export class ChatGPTAPI { id: uuidv4(), conversationId, parentMessageId: messageId, - text: undefined, + text: '', functionCall: undefined, conversation: [] }