Skip to content

Commit

Permalink
correct chat app ordering (#569)
Browse files Browse the repository at this point in the history
  • Loading branch information
samuelcolvin authored Dec 30, 2024
1 parent 7dfca69 commit 06580b0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/pydantic_ai_examples/chat_app.py
Original file line number Diff line number Diff line change
Expand Up @@ -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] = []
Expand Down

0 comments on commit 06580b0

Please sign in to comment.