From ab972fd0cf0f6f3ee209c8827f83177bdbdd4f31 Mon Sep 17 00:00:00 2001 From: ulleo Date: Wed, 24 Dec 2025 12:06:53 +0800 Subject: [PATCH] feat: support command in mcp --- backend/apps/chat/api/chat.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/apps/chat/api/chat.py b/backend/apps/chat/api/chat.py index 4e56095e..211b9534 100644 --- a/backend/apps/chat/api/chat.py +++ b/backend/apps/chat/api/chat.py @@ -200,7 +200,7 @@ async def question_answer_inner(session: SessionDep, current_user: CurrentUser, stmt = select(ChatRecord.id, ChatRecord.chat_id, ChatRecord.analysis_record_id, ChatRecord.predict_record_id, ChatRecord.regenerate_record_id, ChatRecord.first_chat).where( - and_(ChatRecord.id == record_id)) + and_(ChatRecord.id == record_id)).order_by(ChatRecord.create_time.desc()) _record = session.execute(stmt).fetchone() if not _record: raise Exception(f'Record id: {record_id} does not exist')