Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

#391 Chat Ordering based upon the order of interaction #445

Merged
merged 8 commits into from
Jul 22, 2024
Merged
Changes from 5 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions ragna/deploy/_ui/left_sidebar.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,10 @@ def refresh(self):

@pn.depends("refresh_counter", "chats", "current_chat_id", on_init=True)
def __panel__(self):
self.chats.sort(
key=lambda chat: chat["messages"][-1]["timestamp"], reverse=True
)
arjxn-py marked this conversation as resolved.
Show resolved Hide resolved

self.chat_buttons = []
for chat in self.chats:
button = pn.widgets.Button(
Expand Down