feat: regenerate history switch navigation (#8749)

This commit is contained in:
Hash Brown
2024-10-24 12:09:46 +08:00
committed by GitHub
parent 2c26f77a25
commit 57ec12eb6b
19 changed files with 3460 additions and 73 deletions

View File

@@ -105,6 +105,8 @@ class ChatMessageListApi(Resource):
if rest_count > 0:
has_more = True
history_messages = list(reversed(history_messages))
return InfiniteScrollPagination(data=history_messages, limit=args["limit"], has_more=has_more)