diff --git a/app/middleware/llm_task.py b/app/middleware/llm_task.py index 1dccd7148..03a71ab0b 100644 --- a/app/middleware/llm_task.py +++ b/app/middleware/llm_task.py @@ -138,7 +138,7 @@ async def build_message(self, remember=True): if isinstance(system_prompt, str): message_run.append(SystemMessage(content=system_prompt)) history = await self.message_history.read(lines=10) - history = reversed(history) + logger.trace(f"History message {history}") for de_active_message in history: try: msg = active_cell_string(de_active_message)