Soulter
13d3fc5cfe
fix: fix type checking error and op, deop, wl, dwl command
2025-10-02 00:18:12 +08:00
Soulter
afe007ca0b
refactor: 优化 packages/astrbot 内置插件的代码结构以提高可维护性和可读性 ( #2924 )
...
* refactor: code structure for improved readability and maintainability
* style: ruff format
* Update packages/astrbot/commands/provider.py
Co-authored-by: sourcery-ai[bot] <58596630+sourcery-ai[bot]@users.noreply.github.com>
* Update packages/astrbot/commands/persona.py
Co-authored-by: sourcery-ai[bot] <58596630+sourcery-ai[bot]@users.noreply.github.com>
* Update packages/astrbot/commands/llm.py
Co-authored-by: sourcery-ai[bot] <58596630+sourcery-ai[bot]@users.noreply.github.com>
* Update packages/astrbot/commands/conversation.py
Co-authored-by: sourcery-ai[bot] <58596630+sourcery-ai[bot]@users.noreply.github.com>
* fix: improve error handling message formatting in key switching
* fix: update LLM command to use safe get for provider settings
* feat: implement ProcessLLMRequest class for handling LLM requests and persona injection
---------
Co-authored-by: sourcery-ai[bot] <58596630+sourcery-ai[bot]@users.noreply.github.com>
2025-10-01 21:29:15 +08:00
Soulter
50f74f5ba2
fix: 修复"开启 TTS 时同时输出语音和文字内容"功能不可用的问题 ( #2900 )
...
fixes : #2844
2025-09-28 10:48:57 +08:00
anka
ccb380ce06
feat: 支持接入 Coze ( #2858 )
...
* feat: 适配 coze 供应商
1. 支持文件上传
2. 支持多模态
3. 支持流式传输
4. 支持 API 端的上下文保存历史记录
5. 支持类似 dify 的 forget 接口
* style: format code
* fix: type checking error
* fix: 修复:
1. 使用coze api端的上下文时, 现在不会重复传递上下文
2. 使用 AstrBot 的上下文时, 正确处理其中的图片信息
3. 上传图片时, 提供一个非持久化的缓存避免重复上传(在解析上下文并将文件转化为file_id传递给coze api时, 如果没有缓存会导致很多的网络资源浪费)
4. 修复reset等指令不能正确重置上下文的问题
* fix: 移除某些地方多余的针对 dify 的断言, 以兼容 Coze
* style: 修改配置项显示/webchat平台对于非预期的类型的处理
* fix: 让conversation_id放到请求中正确的位置
* refactor: extract coze api client
* refactor: improve image processing logic in ProviderCoze
* chore: remove file ext guessing
---------
Co-authored-by: Soulter <905617992@qq.com >
2025-09-27 14:23:29 +08:00
Soulter
09d1f96603
fix: 修复 /alter_cmd 指令无法控制指令组、子指令组和子指令组下子指令的问题 ( #2873 )
...
* fix: revert changes in command_group.py at 782c036 to fix command group permission check
* fix: 不传递 GroupCommand handler
* perf: alter_cmd 指令支持对子指令、指令组进行配置
* chore: remove test commands and subcommands from test_group
* chore: add cache for complete command names list in CommandFilter and CommandGroupFilter
---------
Co-authored-by: Dt8333 <25431943+Dt8333@users.noreply.github.com >
Co-authored-by: Soulter <905617992@qq.com >
2025-09-26 14:16:50 +08:00
Soulter
7a5bc51c11
fix: 识别引用消息的图片时优先使用默认图片转述提供商 ( #2836 )
...
* fix: 识别引用消息的图片时优先使用默认图片转述提供商
closes : #2821
* fix: 添加日志记录以处理未找到图片标题提供者的情况
* style: format code
2025-09-21 20:55:32 +08:00
Soulter
80a86f5b1b
fix: 修复 astrbot.core.star 等包下的 type checking error ( #2787 )
...
* fix: 修复 astrbot.core.star 等包下的 type checking error
* refactor: improve type checking and annotations
* chore: ruff format
2025-09-21 18:10:04 +08:00
anka
9d9917e45b
feat: 增加群名称识别到 system prompt, 并提供相应的配置 ( #2770 )
...
* feat🤖 : 增加群名称识别到system prompt, 并提供相应的配置
* feat: 优化实现方式, 重构AstrBotMessage, 向后兼容
* style: format
2025-09-16 10:23:08 +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
e84a00d3a5
fix: 修复多配置文件配置的不同人格无法生效的问题 ( #2739 )
...
fixes : #2724
2025-09-14 14:09:46 +08:00
Dt8333
ea6f209557
fix: 修复LLM仍会调用已禁用的工具的问题 ( #2729 )
...
* fix: 修复LLM调用已禁用的工具
* feat: 修改工具禁用判断位置,提高效率
未设置可用工具时仍旧循环判断
设置可用工具后在获取工具时即判断
2025-09-12 21:36:10 +08:00
RC-CHN
72aea2d3f3
feat: 允许添加多个 tavily API Key 进行轮询 ( #2725 )
...
* feat: 允许添加多个tavily API Key进行轮询
* perf: 并发安全的从列表中获取并轮换Tavily API密钥
* fix: 自动迁移旧版 websearch_tavily_key 为列表格式并保存
2025-09-12 15:03:47 +08:00
卢小辉
45a4a6b6da
feat: 给添加 edge_tts 新增 rate, volume, pitch 参数 ( #2625 )
...
* 修复python执行器文件上传qq提示参数错误问题,修改策略为本地url
* 给edge_tts 添加3个默认参数,方便通过ui配置
2025-09-05 15:23:21 +08:00
Soulter
35eda37e83
Merge remote-tracking branch 'origin/releases/v3.5.27'
2025-09-04 15:30:15 +08:00
Soulter
ba2ee1c0aa
fix: 初次下载 webui 构建文件时下载指定版本而非 latest
2025-09-04 13:27:55 +08:00
Soulter
4149549e42
fix: KeyError arprompt
2025-09-03 12:45:34 +08:00
Soulter
bea7bae674
fix: dict read
2025-09-03 00:56:41 +08:00
Soulter
8d4c176314
fix: correct image_caption logic and remove redundant config call
2025-09-03 00:31:18 +08:00
Soulter
64bcbc9fc0
refactor: 重构 SharedPreference 类并采用数据库存储替换 json 存储 ( #2482 )
2025-08-18 19:12:26 +08:00
Soulter
1df49d1d6f
refactor: 重构 Function Tool 管理并初步引入 Multi Agent 及 Agent Handsoff 机制 ( #2454 )
...
* stage
* refactor: 重构 Function Tool 管理并引入 multi agent handsoff 机制
- Updated `star_request.py` to use the global `call_handler` instead of context-specific calls.
- Modified `entities.py` to remove the dependency on `FunctionToolManager` and streamline the function tool handling.
- Refactored `func_tool_manager.py` to simplify the `FunctionTool` class and its methods, removing deprecated code and enhancing clarity.
- Adjusted `provider.py` to align with the new function tool structure, removing unnecessary type unions.
- Enhanced `star_handler.py` to support agent registration and tool association, introducing `RegisteringAgent` for better encapsulation.
- Updated `star_manager.py` to handle tool registration for agents, ensuring proper binding of handlers.
- Revised `main.py` in the web searcher package to utilize the new agent registration system for web search tools.
* chore: websearch
* perf: 减少嵌套
* chore: 移除未使用的 mcp 导入
2025-08-17 10:57:25 +08:00
Soulter
b711140f26
Feature: 优化 WebSearch 的爬取网页速度并且支持使用 Tavily 作为搜索引擎 ( #2427 )
...
* feat: 优化了 websearch 的速度;支持 Tavily 作为搜索引擎
* fix: 优化日志记录格式,修复搜索结果处理中的索引和内容显示问题
2025-08-14 10:52:35 +08:00
Soulter
1d766001bb
Feature: 增加图片转述提供商配置、支持用户自定义模型模态能力 ( #2422 )
...
* feat: 增加图片转述提供商配置、支持用户自定义模型模态能力
* fix: 修复 LLMRequestSubStage 中会话管理方法参数不一致的问题,简化方法调用
2025-08-13 19:11:17 +08:00
Soulter
0759a11a85
fix: 修复 stage 在不同 pipeline 中被重复使用的问题和 persona 相关问题
2025-08-13 13:13:04 +08:00
Soulter
cb749a38ab
chore: remove status checking in chat page
2025-08-13 10:45:50 +08:00
Soulter
369eab18ab
Refactor: 重构配置文件管理,以支持更灵活的、会话粒度的(基于 umo part)配置文件隔离 ( #2328 )
...
* refactor: 重构配置文件管理,以支持更灵活的、基于 umo part 的配置文件隔离
* Refactor: 重构配置前端页面,新增数个配置项 (#2331 )
* refactor: 重构配置前端页面,新增数个配置项
* feat: 完善多配置文件结构
* perf: 系统配置入口
* fix: normal config item list not display
* fix: 修复 axios 请求中的上下文引用问题
2025-08-13 09:18:49 +08:00
Soulter
0c6e526f94
fix: platform id
2025-08-04 13:10:37 +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
87f05fce66
Fix: 当多个相同消息平台实例部署时上下文可能混乱(共享) ( #2298 )
...
* perf: update astrbot event session format, using platfrom id to ensure uniqueness
fixes : #1000
* fix: 更新 MessageSession 类以使用 platform_id 作为唯一标识符,并调整相关方法以确保一致性
* fix: 更新 MessageSession 文档以明确 platform_id 的赋值规则,并调整 get_platform 和 get_platform_inst 方法的返回类型
2025-08-02 21:38:55 +08:00
Raven95676
74a5c01f21
refactor: remove code and documentation references related to gewechat
2025-07-26 14:19:17 +08:00
Soulter
d7fd616470
style: code quality
2025-07-21 17:04:29 +08:00
Soulter
af295da871
chore: remove /mcp command
2025-07-13 17:11:02 +08:00
Soulter
0ee1eb2f9f
chore: remove useless file
2025-07-13 16:30:00 +08:00
Gao Jinzhe
6cabf07bc0
Merge branch 'AstrBotDevs:master' into Astrbot_session_manage
2025-07-13 00:23:29 +08:00
advent259141
a15444ee8c
移除了mcp会话级的启停,增加了批量设置的选项,对相关问题进行了修复
2025-07-13 00:15:21 +08:00
Soulter
ceb5f5669e
fix: update active reply bot prefix in logging for clarity
2025-07-13 00:12:31 +08:00
Gao Jinzhe
25b75e05e4
Merge branch 'AstrBotDevs:master' into Astrbot_session_manage
2025-07-12 22:25:20 +08:00
Soulter
a66c385b08
fix: deadlock when docker is not available
2025-07-11 12:27:49 +08:00
Raven95676
4dace7c5d8
chore: format code
2025-07-11 11:23:53 +08:00
Gao Jinzhe
0f692b1608
Merge branch 'master' into Astrbot_session_manage
2025-07-09 10:13:51 +08:00
Soulter
22364ef7de
feat: 支持对引用消息中的图片内容进行理解
...
fixes : #2056
2025-07-08 22:08:40 +08:00
Soulter
f51f510f2e
perf: enhance date handle in reminder
...
fixes : #1901
2025-07-08 16:33:46 +08:00
Soulter
ab599dceed
Merge branch 'master' into deprecate/register_star-decorator
2025-07-08 11:52:33 +08:00
JOJO
ff63134c14
fix: 增加演示模式下校验插件开启/关闭/安装指令
2025-07-05 12:43:19 +08:00
Raven95676
edbb856023
refactor: deprecate register_star decorator
2025-07-04 15:54:23 +08:00
Soulter
14e0aa3ec5
perf: history 和 persona 指令当对话不存在的时候自动创建
...
fixes : #1997
2025-07-03 15:40:00 +08:00
Gao Jinzhe
1538759ba7
Merge branch 'master' into Astrbot_session_manage
2025-07-01 17:19:30 +08:00
Raven95676
d03d035437
perf: 合并嵌套的if条件
2025-07-01 13:53:22 +08:00
Raven95676
68e8e1f70b
feat: 集成r1_filter至框架
2025-07-01 12:40:52 +08:00
advent259141
f536f24833
astrbot/core/pipeline/process_stage/method/llm_request.py
...
astrbot/core/pipeline/result_decorate/stage.py
astrbot/core/star/session_llm_manager.py
astrbot/core/star/session_tts_manager.py
astrbot/dashboard/routes/session_management.py
astrbot/dashboard/server.py
dashboard/src/views/SessionManagementPage.vue
packages/astrbot/main.py
2025-06-27 17:08:05 +08:00
Soulter
b84e22e41f
fix: separate provider
...
fixes #1793
2025-06-12 14:07:23 +08:00