llama model cache, a few bugfixes
This commit is contained in:
1 parent
7114d91403
commit
39fa4f1123
3 files changed
+14
-12
No files matched your search
+2
-1
@@ -91,7 +91,8 @@ class ChatView:
|
||||
filters["id__lte"] = self._earliest_message_id
|
||||
|
||||
# Tortoise query: filter, order, and limit
|
||||
records_rev = await db.Message.filter(**filters).order_by("-time").limit(load_count)
|
||||
# ordering by id is more robust than by time
|
||||
records_rev = await db.Message.filter(**filters).order_by("-id").limit(load_count)
|
||||
|
||||
# Update the earliest id for the next load operation
|
||||
if records_rev:
|
||||
|
||||
Reference in new issue
Block a user