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(), id: uuidv4(),
conversationId: conversationId, conversationId: conversationId,
parentMessageId: messageId, parentMessageId: messageId,
text: undefined, text: '',
functionCall: undefined, functionCall: undefined,
conversation: [] conversation: []
}; };

View file

@ -181,7 +181,7 @@ export class ChatGPTAPI {
id: uuidv4(), id: uuidv4(),
conversationId, conversationId,
parentMessageId: messageId, parentMessageId: messageId,
text: undefined, text: '',
functionCall: undefined, functionCall: undefined,
conversation: [] conversation: []
} }