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

This commit is contained in:
Soulter
2025-03-26 13:50:11 +08:00
parent d4bcb8174e
commit 9c9ab50d1a

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 ?)"
)