Skip to content

Commit

Permalink
Merge pull request #63 from upstash/prevent-history-revert
Browse files Browse the repository at this point in the history
fix: prevent history revert
  • Loading branch information
ogzhanolguncu authored Aug 23, 2024
2 parents bcdcba4 + 9e261e4 commit 2800e0d
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/rag-chat.ts
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,6 @@ export class RAGChat {

// Formats the chat history for better accuracy when querying LLM
const formattedHistory = modifiedChatHistory
.reverse()
.map((message) => {
return message.role === "user"
? `USER MESSAGE: ${message.content}`
Expand Down

0 comments on commit 2800e0d

Please sign in to comment.