This commit is contained in:
2026-05-06 07:24:31 -06:00
parent 8845845bf0
commit 19c26dc5b7
2 changed files with 29 additions and 2 deletions

View File

@@ -88,7 +88,7 @@ def list_prompt_history(request, task_id: int):
items.append(
(
user_msg.created,
(user_msg.created, user_msg.id),
{
"user_message_id": user_msg.id,
"assistant_message_id": assistant_msg.id,
@@ -104,7 +104,7 @@ def list_prompt_history(request, task_id: int):
)
)
return [item for _, item in sorted(items, key=lambda row: row[0], reverse=True)]
return [item for _, item in sorted(items, key=lambda row: row[0])]
@router.post("/conversations/{conversation_id}/classify")