mirror of
https://github.com/Paillat-dev/Botator.git
synced 2026-01-02 01:06:19 +00:00
fix(makeprompt.py): reverse order of messages when chat history is requested
This commit is contained in:
@@ -279,6 +279,7 @@ async def chat_process(self, message):
|
||||
messages = await hist.history(
|
||||
limit=data_dict["prompt_size"]
|
||||
).flatten()
|
||||
messages.reverse()
|
||||
else:
|
||||
messages = await hist.history(
|
||||
limit=data_dict["prompt_size"], before=original_message
|
||||
|
||||
Reference in New Issue
Block a user