Commit Graph

3946 Commits

Author SHA1 Message Date
DrSmoothl
b132a64de6 feat: 更新模型获取逻辑,处理返回的模型数组并添加鉴权头 2026-05-02 00:08:12 +08:00
DrSmoothl
d9a509b6c2 feat(chat): refactor chat message handling and introduce private messaging support
- Updated `uni_message_sender.py` to allow for private messaging by removing the mandatory group ID and adding user ID handling.
- Enhanced chat history retrieval and clearing functions in `routes.py` and `service.py` to support both group and private chat scenarios.
- Introduced a new `ChatScrollContext` for managing message scrolling and highlighting in the chat UI.
- Created a `ListItemEditorHookFactory` for rendering a rich UI editor for list items in configuration settings, replacing the previous JSON text display.
- Improved message serialization for consistent display in chat history.
- Added detailed logging for chat history operations and error handling.

Co-authored-by: Copilot <copilot@github.com>
2026-05-01 17:54:13 +08:00
SengokuCola
2238c34eca feat:缓存调试信息开关 2026-05-01 13:19:07 +08:00
SengokuCola
88b895a925 perf: stabilize maisaka prompt cache 2026-05-01 13:00:54 +08:00
SengokuCola
badd4988b6 feat: add llm cache diagnostics 2026-05-01 13:00:27 +08:00
SengokuCola
a37e906862 fix:修改部分模型调用 2026-05-01 12:56:23 +08:00
SengokuCola
dac011c680 Update official_configs.py 2026-04-30 00:01:26 +08:00
SengokuCola
4fd9875aae pref: 移除部分冗余log 2026-04-29 18:10:52 +08:00
SengokuCola
500d5c11b3 fix:timinggate非法工具会重试 2026-04-29 17:46:29 +08:00
SengokuCola
25220e92a8 feat:人设结构更改,不需要以“是”开头 2026-04-28 17:49:36 +08:00
DrSmoothl
742e21a727 feat: Add LLM Provider support in plugin runtime
- Introduced LLM Provider declarations in plugin manifests, allowing plugins to specify their LLM capabilities.
- Implemented validation for LLM Provider declarations to prevent duplicates and conflicts.
- Enhanced the PluginRunner to handle LLM Provider invocation requests, enabling plugins to interact with LLM Providers seamlessly.
- Added a ClientRegistry to manage LLM Provider registrations and ensure no conflicts arise between different plugins.
- Created a PluginLLMClient to facilitate communication with LLM Providers through the plugin runtime.
- Developed tests to ensure proper registration and conflict handling of LLM Providers.
2026-04-27 16:49:44 +08:00
DrSmoothl
1fe9dc8786 feat: 更新 ConfigManager 初始化,支持配置自动升级并添加相应测试 2026-04-27 13:17:51 +08:00
SengokuCola
8de950df2e feat:私聊单独的上下文和回复频率控制 2026-04-27 11:18:38 +08:00
SengokuCola
d32be4741a feat:新增按顺序选择 fix:修复timing gate意外tool问题 2026-04-27 10:53:13 +08:00
Soulter
45cd00e343 fix(llm): support reasoning field for OpenRouter and Groq
fixes: #1600
2026-04-26 22:45:37 +08:00
SengokuCola
be2248b283 feat:为日志添加上限和配置防止膨胀 2026-04-25 14:45:35 +08:00
SengokuCola
8168fe0d8a better:优化部分导入以更快的启动 2026-04-25 14:26:02 +08:00
SengokuCola
9759018a0c feat:支持模型缓存和相关配置 2026-04-25 13:53:30 +08:00
SengokuCola
4b1bc2aba8 fix:回复格式问题 2026-04-25 01:25:52 +08:00
SengokuCola
705452793d feat:进一步优化缓存 2026-04-25 00:26:32 +08:00
SengokuCola
7719353984 feat:精简表达选择,优化replyer表现,优化缓存命中率 2026-04-24 21:27:45 +08:00
SengokuCola
3b6d30cd5e fix:修部分显示问题和模型问题 2026-04-23 17:40:33 +08:00
SengokuCola
03750cdb6b remove:无用代码 2026-04-23 16:02:32 +08:00
SengokuCola
35ff91d134 feat:可开启原生at功能 2026-04-23 15:56:27 +08:00
SengokuCola
2255592bd2 Merge branch 'dev' of https://github.com/Mai-with-u/MaiBot into dev 2026-04-22 23:39:14 +08:00
DrSmoothl
465c5bd97a feat: 更新 EmojiResponse 模型,添加 format 和 usage_count 字段 2026-04-22 23:37:50 +08:00
SengokuCola
066c8baf84 feat:修复部分模型请求问题(v4l) 2026-04-22 23:36:39 +08:00
DrSmoothl
c0be64f268 Refactor API response models and improve documentation
- Updated response model functions in emoji, expression, jargon, and person routers to include detailed docstrings.
- Enhanced the clarity of function signatures by specifying return types.
- Removed redundant comments and improved code readability.
- Added error handling and logging improvements in various endpoints.
- Deleted outdated code documentation file.
2026-04-22 23:33:57 +08:00
SengokuCola
1716272b25 feat:支持msg_id获取消息能力 2026-04-22 11:26:39 +08:00
SengokuCola
e9da641dbb feat:进一步修改,支持黑白名单(黑名单优先级更高) 2026-04-22 00:30:45 +08:00
SengokuCola
8c8f06b086 Merge branch 'dev' of https://github.com/Mai-with-u/MaiBot into dev 2026-04-22 00:13:28 +08:00
SengokuCola
f1563ede65 feat:修复门控多重result问题,新增at动作,插件现在运行chat_id指定或chat_type指定 2026-04-22 00:11:14 +08:00
Dawn ARC
7fc56d0c00 Merge branch 'Mai-with-u:dev' into dev 2026-04-21 23:20:41 +08:00
A-Dawn
0eba6186c1 feat(A_memorix): 为双路检索接入共享候选池与图后验器
让段落与关系检索先复用共享向量候选池,再按类型回填,缓解单侧候选竞争导致的召回不足。
新增 posterior_graph 尾部补位竞争逻辑,并补齐运行时配置解析与 CONFIG_REFERENCE 说明
2026-04-21 23:20:17 +08:00
SengokuCola
363c0a77b7 feat:visual style从配置中移除,改为prompt模板内容 2026-04-21 18:26:54 +08:00
SengokuCola
9ff86825bd fix:saka.py无法启动 2026-04-21 17:21:43 +08:00
A-Dawn
e41922e24c feat(A_memorix): 收紧稀疏尾部召回并改进 PPR 增益 2026-04-21 14:08:14 +08:00
A-Dawn
c6e2c6e003 chore(A_memorix): 回退实现整理以恢复本地主导基线 2026-04-21 14:06:46 +08:00
SengokuCola
269c434778 remove:移除内部固定温度参数 2026-04-21 13:43:13 +08:00
SengokuCola
54d3f156d4 feat:表达方式可简化 2026-04-21 11:17:40 +08:00
SengokuCola
66663050dd fix:移除冗余代码,丰富replyer log记录,表达方式改为replyer模型 2026-04-21 10:32:25 +08:00
SengokuCola
6696eb2fd4 feat:可关闭引用回复 2026-04-20 23:40:20 +08:00
SengokuCola
d2f90635fa fix:修复配置文件迁移失败问题 2026-04-19 20:10:56 +08:00
SengokuCola
a68dca1584 迁移前提醒,以及对表达[[*]]的正确迁移 2026-04-19 14:21:05 +08:00
SengokuCola
32fa254c45 feat:优化评分网页,可关闭状态看板 2026-04-19 01:43:27 +08:00
SengokuCola
5b9f418617 fix:生成默认配置文件 2026-04-18 23:02:20 +08:00
SengokuCola
c67f7e8bd2 fix:生成默认配置文件 2026-04-18 22:31:15 +08:00
SengokuCola
b067df9e60 fix:ruff 2026-04-18 00:19:28 +08:00
SengokuCola
abada55884 feat:添加回复后打分追踪器 2026-04-17 23:05:46 +08:00
SengokuCola
f3f61d6192 Merge branch 'r-dev' of https://github.com/Mai-with-u/MaiBot into r-dev 2026-04-17 10:57:22 +08:00