From 79b188ccaaafb0d35225013ffafc24b1f1aacc2d Mon Sep 17 00:00:00 2001 From: ulleo Date: Wed, 28 Jan 2026 19:06:24 +0800 Subject: [PATCH] feat: add chat log step display #324 #742 --- backend/apps/chat/curd/chat.py | 1 + 1 file changed, 1 insertion(+) diff --git a/backend/apps/chat/curd/chat.py b/backend/apps/chat/curd/chat.py index 81c8c788..d87c3e51 100644 --- a/backend/apps/chat/curd/chat.py +++ b/backend/apps/chat/curd/chat.py @@ -356,6 +356,7 @@ def get_chat_with_records(session: SessionDep, chart_id: int, current_user: Curr and_( ChatLog.pid.in_(record_ids), ChatLog.local_operation == False, + ChatLog.operate != OperationEnum.GENERATE_RECOMMENDED_QUESTIONS, ChatLog.token_usage.is_not(None) # 排除token_usage为空的记录 ) )