Skip to content

Commit

Permalink
feat: refresh LMSYS context when inactive too long
Browse files Browse the repository at this point in the history
  • Loading branch information
sunner committed Aug 14, 2023
1 parent 6cfe395 commit 014143a
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/bots/lmsys/LMSYSBot.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,10 @@ export default class LMSYSBot extends GradioBot {
"REFRESH THIS PAGE",
`<a href="${this.constructor._loginUrl}" target="innerWindow">REFRESH THIS PAGE</a>`,
);

// Refresh the session too
const context = this.createChatContext();
this.setChatContext(context);
}
return errorMsg;
}
Expand Down

1 comment on commit 014143a

@vercel
Copy link

@vercel vercel bot commented on 014143a Aug 14, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

chatall – ./

chatall-llm.vercel.app
chatall-git-main-sunner.vercel.app
chatall-sunner.vercel.app

Please sign in to comment.