refactor: 移除冗余文件并优化代码结构
- 删除多个不再使用的脚本和配置文件,包括 `auto_push.bat`, `check_and_fix_users.py`, `init.sql` 等。 - 新增 `git_push.bat` 和 `git_push.sh` 脚本以简化 Git 推送流程。 - 更新 `README.md` 以反映最新的功能和结构变化。 - 优化前端代码,添加新的页面和组件,提升用户体验。 此提交旨在清理项目结构并增强代码可维护性。
This commit is contained in:
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -141,7 +141,13 @@ class RealtimeChatManager:
|
||||
|
||||
# 保存到数据库(每轮一条,带会话标记)
|
||||
self._save_conversation(session_id, user_msg, assistant_msg)
|
||||
|
||||
|
||||
# 更新知识库使用次数
|
||||
if knowledge_results:
|
||||
used_entry_ids = [result["id"] for result in knowledge_results if result.get("id")]
|
||||
if used_entry_ids:
|
||||
self.knowledge_manager.update_usage_count(used_entry_ids)
|
||||
|
||||
return {
|
||||
"success": True,
|
||||
"response": assistant_response["content"], # 修改为response字段
|
||||
|
||||
Reference in New Issue
Block a user