🎈 perf: 优化 WebUI 对话数据库中文历史检索

This commit is contained in:
Soulter
2025-03-26 13:50:11 +08:00
parent a38b00be6b
commit 89d3fd5fab

View File

@@ -491,6 +491,7 @@ class SQLiteDatabase(BaseDatabase):
# 搜索关键词
if search_query:
search_query = search_query.encode("unicode_escape").decode("utf-8")
where_clauses.append(
"(title LIKE ? OR user_id LIKE ? OR cid LIKE ? OR history LIKE ?)"
)