add output keys fix

This commit is contained in:
Henry
2023-08-07 00:14:00 +01:00
parent 3029880967
commit 5ef0324304
2 changed files with 5 additions and 7 deletions
+1 -1
View File
@@ -509,7 +509,7 @@ export const getUserHome = (): string => {
*/
export const mapChatHistory = (options: ICommonObject): ChatMessageHistory => {
const chatHistory = []
const histories: IMessage[] = options.chatHistory
const histories: IMessage[] = options.chatHistory ?? []
for (const message of histories) {
if (message.type === 'apiMessage') {