Skip to content

Commit

Permalink
...reversedRecentMessages, // was: ...reversedRecentMessages.reverse…
Browse files Browse the repository at this point in the history
…(), - which resulted in wrong, inverse order of added chat history, so fixed now
  • Loading branch information
DirkSchlossmacher committed Oct 8, 2024
1 parent 5e3d7a9 commit 2c56cd6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/store/chat.ts
Original file line number Diff line number Diff line change
Expand Up @@ -545,7 +545,7 @@ export const useChatStore = createPersistStore(
...systemPrompts,
...longTermMemoryPrompts,
...contextPrompts,
...reversedRecentMessages.reverse(),
...reversedRecentMessages, // was: ...reversedRecentMessages.reverse(), - which resulted in wrong, inverse order of added chat history, so fixed now
];

return recentMessages;
Expand Down

0 comments on commit 2c56cd6

Please sign in to comment.