Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions backend/apps/chat/curd/chat.py
Original file line number Diff line number Diff line change
Expand Up @@ -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为空的记录
)
)
Expand Down