mirror of
https://github.com/Paillat-dev/Botator.git
synced 2026-01-02 09:16: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(
|
messages = await hist.history(
|
||||||
limit=data_dict["prompt_size"]
|
limit=data_dict["prompt_size"]
|
||||||
).flatten()
|
).flatten()
|
||||||
|
messages.reverse()
|
||||||
else:
|
else:
|
||||||
messages = await hist.history(
|
messages = await hist.history(
|
||||||
limit=data_dict["prompt_size"], before=original_message
|
limit=data_dict["prompt_size"], before=original_message
|
||||||
|
|||||||
Reference in New Issue
Block a user