Soulter
95e9da42d6
fix(webchat): webchat session cannot be deleted ( #3759 )
2025-11-23 22:03:07 +08:00
Soulter
cb087b5ff9
refactor: update timestamp handling in session management and chat components
2025-11-20 17:02:01 +08:00
Soulter
1d3928d145
refactor(sqlite): remove auto-generation of session_id in insert method
2025-11-20 16:33:57 +08:00
Soulter
1935ce4700
refactor: update session handling by replacing conversation_id with session_id in chat routes and components
2025-11-19 19:54:29 +08:00
Soulter
be3e5f3f8b
refactor: update message history deletion logic to remove newer records based on offset
2025-11-19 19:41:25 +08:00
Soulter
cf4a5d9ea4
refactor: change to platform session
2025-11-18 22:37:55 +08:00
Soulter
323ec29b02
refactor: Implement WebChat session management and migration from version 4.6 to 4.7
...
- Added WebChatSession model for managing user sessions.
- Introduced methods for creating, retrieving, updating, and deleting WebChat sessions in the database.
- Updated core lifecycle to include migration from version 4.6 to 4.7, creating WebChat sessions from existing platform message history.
- Refactored chat routes to support new session-based architecture, replacing conversation-related endpoints with session endpoints.
- Updated frontend components to handle sessions instead of conversations, including session creation and management.
2025-11-18 22:04:26 +08:00
LIghtJUNction
0b7fc29ac4
style: add ruff lint module of isort and pyupgrade, and some ruff check fix ( #3214 )
...
Co-authored-by: Dt8333 <25431943+Dt8333@users.noreply.github.com >
Co-authored-by: Soulter <905617992@qq.com >
2025-11-01 13:26:19 +08:00
ctrlkk
dcd8a1094c
feat: 优化 SQLite 参数配置,对话和会话管理增加输入防抖机制 ( #2969 )
...
* feat: 优化 SQLite 数据库初始化设置并增强会话搜索功能,会话管理增加输入防抖
* fix: adjust SQLite cache and mmap size
---------
Co-authored-by: Soulter <905617992@qq.com >
2025-10-06 17:13:53 +08:00
ctrlkk
68ff8951de
feat: 添加分页和搜索功能以获取会话列表,优化前端与后端的数据交互 ( #2906 )
...
* feat: 添加分页和搜索功能以获取会话列表,优化前端与后端的数据交互
* fix: 修复会话计数显示,使用总项数替代会话数组长度
* fix: 将参数类型和名称与实现内容匹配。
* perf: convert for loop into list comprehension
Co-authored-by: sourcery-ai[bot] <58596630+sourcery-ai[bot]@users.noreply.github.com>
* fix: type checking error
* fix: 优化 persona_id 的获取逻辑
---------
Co-authored-by: Soulter <37870767+Soulter@users.noreply.github.com >
Co-authored-by: sourcery-ai[bot] <58596630+sourcery-ai[bot]@users.noreply.github.com>
Co-authored-by: Soulter <905617992@qq.com >
2025-09-28 23:25:30 +08:00
Soulter
c2a34475f1
feat: 支持删除指定会话以及部分会话管理优化 ( #2895 )
...
* feat: add toast notification system with snackbar component
* feat: add session deletion functionality
* feat: support batch operations for updating session persona, provider, LLM, and TTS statuses
fix : #2263
* feat: 修复对话状态关闭,删除对话管理库会导致对话无法恢复
fixes : #2309
2025-09-27 20:36:30 +08:00
Soulter
6084abbcfe
feat: add user_id search capability in get_filtered_conversations
2025-09-21 22:45:55 +08:00
Soulter
9f939b4b6f
fix: 修复对话管理页面的关键词搜索功能失效的问题并优化一些 UI 样式 ( #2837 )
...
* fix: 修复对话管理页面的关键词搜索功能失效的问题并优化一些 UI 样式
fixes : #2782
* style: format code
* fix: remove debug print statements from conversation retrieval methods
2025-09-21 20:55:15 +08:00
Soulter
64bcbc9fc0
refactor: 重构 SharedPreference 类并采用数据库存储替换 json 存储 ( #2482 )
2025-08-18 19:12:26 +08:00
Soulter
b1e3018b6b
Improve: 引入全新的人格管理模式以及重构函数工具管理器 ( #2305 )
...
* feat: add persona management
* refactor: 重构函数工具管理器,引入 ToolSet,并让 Persona 支持绑定 Tools
* feat: 更新 Persona 工具选择逻辑,支持全选和指定工具的切换
* feat: 更新 BaseDatabase 中的 persona 方法返回类型,支持返回 None
2025-08-04 00:56:26 +08:00
Soulter
842c3c8ea9
Refactor: using sqlmodel(sqlchemy+pydantic) as ORM framework and switch to async-based sqlite operation ( #2294 )
...
* stage
* stage
* refactor: using sqlchemy as ORM framework, switch to async-based sqlite operation
- using sqlmodel as ORM(based on sqlchemy and pydantic)
- add Persona, Preference, PlatformMessageHistory table
* fix: conversation
* fix: remove redundant explicit session.commit, and fix some type error
* fix: conversation context issue
* chore: remove comments
* chore: remove exclude_content param
2025-08-02 15:44:00 +08:00
Soulter
7098c98dde
fix: 修复 Windows 下部署项目时可能出现的 UnicodeDecodeError
...
fixes : #1548
2025-06-11 00:25:14 +08:00
Soulter
9c9ab50d1a
🎈 perf: 优化 WebUI 对话数据库中文历史检索
2025-03-26 13:50:11 +08:00
Soulter
d4bcb8174e
🐛 fix: 修复部分可能形成 SQL 注入的风险
2025-03-26 13:41:18 +08:00
Soulter
125fc3a622
✨ feat: 支持 WebUI 对话管理
2025-03-25 19:44:46 +08:00
Soulter
49bba9bf98
style: format codes
2025-03-03 13:30:55 +08:00
Soulter
67095f97b1
🐛 fix: delete conversation
...
✨ feat: supports active reply whitelist
2025-02-14 01:43:52 +08:00
Soulter
12f4e1146f
feat: 更好的对话管理
2025-02-05 13:26:53 +08:00
Soulter
480dffb51b
feat: 初步实现 webchat 页面
2025-01-10 21:48:15 +08:00
Soulter
c6bdac8835
format: code lint
...
(ruff, uv 是个好东西)
2024-12-10 22:09:53 +08:00
Soulter
bdfc77d349
refactor: im so tired :)
2024-12-09 22:38:42 +08:00
Soulter
750a93a1aa
remove: 移除了 nakuru-project 库
...
但仍然使用其对 OneBot 的数据格式封装。
2024-12-02 19:31:33 +08:00
Soulter
6ab8114eee
feat: v3.4.0
2024-11-27 15:04:30 +08:00