fix(makeprompt.py): reverse order of messages when chat history is requested

This commit is contained in:
Paillat
2023-05-05 12:57:52 +02:00
parent 9c9d674b18
commit ca85067d70

View File

@@ -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