diff --git a/utils/openai/chatgpt-api.js b/utils/openai/chatgpt-api.js index 06b50ced..92f45da4 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 ca297408..42771990 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: [] }