diff --git a/examples/pydantic_ai_examples/chat_app.py b/examples/pydantic_ai_examples/chat_app.py index 76bf9714..cc20eb77 100644 --- a/examples/pydantic_ai_examples/chat_app.py +++ b/examples/pydantic_ai_examples/chat_app.py @@ -190,7 +190,7 @@ async def add_messages(self, messages: bytes): async def get_messages(self) -> list[ModelMessage]: c = await self._asyncify( - self._execute, 'SELECT message_list FROM messages order by id desc' + self._execute, 'SELECT message_list FROM messages order by id' ) rows = await self._asyncify(c.fetchall) messages: list[ModelMessage] = []