fix: 流模式带多余undefined的问题

This commit is contained in:
ikechan8370 2024-03-14 20:52:57 +08:00
parent 2ca27dae8d
commit b822e49d9a
2 changed files with 2 additions and 2 deletions

View file

@ -172,7 +172,7 @@ var ChatGPTAPI = /** @class */ (function () {
id: uuidv4(),
conversationId: conversationId,
parentMessageId: messageId,
text: undefined,
text: '',
functionCall: undefined,
conversation: []
};