Skip to content
This repository has been archived by the owner on Apr 24, 2024. It is now read-only.

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
MrlolDev committed Dec 16, 2023
1 parent 468d7dc commit c27deed
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/bot/utils/conversations.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ export async function getConversation(userId: string, modelName: string) {
}
// check if order is user, model, user, model, etc
// if not, reset conversation
let lastRole = "user";
let lastRole = "model";
for (const message of conversation.history.messages) {
if (message.role === lastRole) {
const updatedConversation = {
Expand Down

0 comments on commit c27deed

Please sign in to comment.