From b822e49d9af50c7b23fcc5fafdfaea1a3217ffef Mon Sep 17 00:00:00 2001 From: ikechan8370 Date: Thu, 14 Mar 2024 20:52:57 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E6=B5=81=E6=A8=A1=E5=BC=8F=E5=B8=A6?= =?UTF-8?q?=E5=A4=9A=E4=BD=99undefined=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- utils/openai/chatgpt-api.js | 2 +- utils/openai/chatgpt-api.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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: [] }