Skip to content

Commit

Permalink
fix: 流模式带多余undefined的问题
Browse files Browse the repository at this point in the history
  • Loading branch information
ikechan8370 committed Mar 14, 2024
1 parent 2ca27da commit b822e49
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion utils/openai/chatgpt-api.js
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@ var ChatGPTAPI = /** @class */ (function () {
id: uuidv4(),
conversationId: conversationId,
parentMessageId: messageId,
text: undefined,
text: '',
functionCall: undefined,
conversation: []
};
Expand Down
2 changes: 1 addition & 1 deletion utils/openai/chatgpt-api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ export class ChatGPTAPI {
id: uuidv4(),
conversationId,
parentMessageId: messageId,
text: undefined,
text: '',
functionCall: undefined,
conversation: []
}
Expand Down

0 comments on commit b822e49

Please sign in to comment.