Soulter
95e9da42d6
fix(webchat): webchat session cannot be deleted ( #3759 )
2025-11-23 22:03:07 +08:00
Soulter
85d66c1056
fix(migration): update migration_done key for webchat session tracking ( #3746 )
2025-11-22 18:51:00 +08:00
Dt8333
b89d3f663c
fix(core.db): 修复升级后webchat未正确迁移的问题 ( #3745 )
...
不是所有人都叫Astrbot
#3722
2025-11-22 18:37:39 +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
77dd89b8eb
feat: add supports for gemini-3 series thought signature ( #3698 )
...
* feat: add supports for gemini-3 series thought signature
* feat: refactor tools_call_extra_content to use a dictionary for better structure
2025-11-20 16:24:02 +08:00
Soulter
aa59532287
refactor: implement migration for WebChat sessions by creating PlatformSession records from platform_message_history
2025-11-20 15:58:27 +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
e760956353
refactor: enhance PlatformSession migration by adding display_name from Conversations and improve session item styling
2025-11-19 19:41:57 +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
cdf617feac
refactor: optimize WebChat session migration by batch inserting records
2025-11-19 19:16:15 +08:00
Soulter
cf4a5d9ea4
refactor: change to platform session
2025-11-18 22:37:55 +08:00
Soulter
0747099cac
fix: restore migration check for version 4.7
2025-11-18 22:07:43 +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
Copilot
94bf3b8195
Fix incorrect type annotations and errors ( #3250 )
...
* Initial plan
* Fix type annotation errors in cmd_conf, cmd_init, and version_comparator
Co-authored-by: LIghtJUNction <106986785+LIghtJUNction@users.noreply.github.com >
* Changes before error encountered
Co-authored-by: LIghtJUNction <106986785+LIghtJUNction@users.noreply.github.com >
* Fix more type annotation errors: change `= None` to `| None = None`
Co-authored-by: LIghtJUNction <106986785+LIghtJUNction@users.noreply.github.com >
* Fix final batch of type annotation errors
Co-authored-by: LIghtJUNction <106986785+LIghtJUNction@users.noreply.github.com >
---------
Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com >
Co-authored-by: LIghtJUNction <106986785+LIghtJUNction@users.noreply.github.com >
Co-authored-by: LIghtJUNction <lightjunction.me@gmail.com >
2025-11-02 17:02:56 +08:00
Copilot
e190bbeeed
Optimize string concatenation in loops: replace += with list.join() ( #3246 )
...
* Initial plan
* Fix string concatenation performance issues in loops
Co-authored-by: LIghtJUNction <106986785+LIghtJUNction@users.noreply.github.com >
* Address code review feedback: Fix plugin list logic and add comment
Co-authored-by: LIghtJUNction <106986785+LIghtJUNction@users.noreply.github.com >
* Improve comment clarity for at_parts accumulation
Co-authored-by: LIghtJUNction <106986785+LIghtJUNction@users.noreply.github.com >
---------
Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com >
Co-authored-by: LIghtJUNction <106986785+LIghtJUNction@users.noreply.github.com >
2025-11-02 13:00:59 +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
LIghtJUNction
d7461ed54c
fix(helper.py): 修复了迁移逻辑,现在不再误判 ( #3215 )
...
* fix(helper.py): 修复了迁移逻辑,现在不再误判
* fix(helper.py): 没有data_v3 dir
2025-10-31 23:37:37 +08:00
lxfight
594ccff9c8
fix: 添加数据库连接检查和知识库终止功能,增强错误处理和清理逻辑,修复知识库无法删除的问题
2025-10-25 11:56:37 +08:00
Soulter
8f021eb35a
feat: refactor document storage to use SQLModel and enhance database operations
2025-10-24 23:17:37 +08:00
Soulter
b1b53ab983
Merge remote-tracking branch 'origin/master' into lwl-dev/knowledge-base
2025-10-24 21:48:47 +08:00
Soulter
9b004f3d2f
feat: update document retrieval to include limit and offset parameters
2025-10-24 17:38:22 +08:00
Soulter
9430e3090d
feat: add progress callback for document upload and enhance upload progress tracking
2025-10-24 17:13:44 +08:00
Soulter
ba44f9117b
feat: enhance document upload process with batch settings and improved chunk handling
2025-10-24 16:37:37 +08:00
Soulter
2f130ba009
feat: delete chunk and delete document
2025-10-24 13:59:17 +08:00
Soulter
7e0a50fbf2
feat: enhance knowledge base retrieval with chunk metadata and pagination support; remove unused chunk model
2025-10-24 00:44:40 +08:00
Soulter
e3aa1315ae
stage
2025-10-23 00:31:15 +08:00
Soulter
2c5f68e696
refactor: 重构创建平台时的流程及一些 UI 优化 ( #3102 )
...
* refactor: 支持在平台直接选择配置文件
* add webchat
* feat: 支持新建平台时现场预览、创建和编辑配置文件
* fix: update configuration file descriptions and visibility based on updating mode
* perf: use incremental decoder
* perf: update descriptions
* fix: UI update issues in config file dialog
* fix: update UI elements for better readability and organization
* feat: enhance sidebar navigation with group feature and dynamic resizing
Co-authored-by: IGCrystal <3811541171@qq.com >
* refactor: persona selector
* perf: 修改部分默认行为
* fix: adjust ExtensionCard layout and improve responsiveness
* refactor: 配置文件绑定消息平台重构为消息平台绑定配文件
* style: add custom styling for v-select selection text
* fix: correct subtitle text in provider.json
* refactor: update conversation management terminology and improve session ID handling
* refactor: add Conversation ID localization and update table header reference
* Update astrbot/core/db/migration/migra_45_to_46.py
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com >
* style: format logger warning for better readability
* refactor: comment out WebChat configuration for future reference
---------
Co-authored-by: IGCrystal <3811541171@qq.com >
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com >
2025-10-20 12:01:06 +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
7740e1e131
ci: add ci stage of code format checking ( #2750 )
...
* style: ruff format
* ci(dashboard-ci): ensure GitHub Release action only runs on push events
* ci(code-format): ruff format and ruff check
2025-09-14 18:05:58 +08:00
Soulter
1a84ebbb1e
fix: remove debug print statement for reranked results in FaissVecDB
2025-08-19 17:57:16 +08:00
Soulter
c9c0352369
feat: 知识库支持配置重排序模型
2025-08-19 17:51:01 +08:00
Soulter
64bcbc9fc0
refactor: 重构 SharedPreference 类并采用数据库存储替换 json 存储 ( #2482 )
2025-08-18 19:12:26 +08:00
Soulter
b2e39b9701
fix: 修复迁移对话时的一些问题
2025-08-17 23:44:08 +08:00
Soulter
e95ad4049b
feat: 添加 WebUI 迁移助手以及相关迁移方法 ( #2477 )
2025-08-17 23:24:30 +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
2ab5810f13
perf: improve transaction performance in vector db
2025-05-30 12:59:26 +08:00
Soulter
af934c5d09
fix: correct dimension typo and enhance API registration logic
2025-05-30 11:42:39 +08:00
Soulter
a36e11973d
perf: code quality
...
Co-authored-by: sourcery-ai[bot] <58596630+sourcery-ai[bot]@users.noreply.github.com>
2025-05-23 16:56:09 +08:00
Soulter
5125568ea2
perf: 交换 if/else 表达式的分支以删除否定
...
Co-authored-by: sourcery-ai[bot] <58596630+sourcery-ai[bot]@users.noreply.github.com>
2025-05-23 16:49:08 +08:00
Soulter
4107a17370
chore: add faiss and aiosqlite deps
2025-05-23 14:04:13 +08:00
Soulter
06b4d8f169
perf: vecdb similarity type
2025-05-23 13:45:00 +08:00
Soulter
1c0c820746
remove: loguru
2025-05-23 13:42:17 +08:00
Soulter
d061403a28
remove: loguru
2025-05-23 13:39:20 +08:00