Commit Graph

3985 Commits

Author SHA1 Message Date
SengokuCola
dca53b84fa Update statistic.py 2026-05-06 13:02:17 +08:00
hsd221
f2fa24d5b5 fix(expression): 自动审核结果持久化到数据库
- _evaluate_expression 将审核结果写入 Expression 数据库字段
- _select_expressions 筛选改用 expr.checked 数据库字段
- check_expression_suitability 返回错误时 early-return,不写数据库
- 移除 expression_review_store 内存缓存依赖
2026-05-06 13:02:17 +08:00
Dreamwxz
337170af12 修复方法签名 2026-05-06 13:02:17 +08:00
Dreamwxz
a3f1fffc1c 加入url校验 2026-05-06 13:02:17 +08:00
Dreamwxz
dd4df5ba81 修复 sse_client 不接受 http_client= 参数 2026-05-06 13:02:17 +08:00
Dreamwxz
21a6bf34af 修改Pydantic 模型校验 2026-05-06 13:02:17 +08:00
Dreamwxz
ed34cb8e1a mcp新增sse支持 2026-05-06 13:02:17 +08:00
SengokuCola
0b2620b290 remove:移除部分max_token限制 2026-05-06 13:02:17 +08:00
SengokuCola
371eb5c0f7 remove:移除全局config快照到snapshot防止撑爆环境变量 2026-05-06 13:02:17 +08:00
SengokuCola
16de259955 perf:优化webui配置展示,优化log显示,修复表达审核 2026-05-05 18:34:20 +08:00
SengokuCola
424287387a Merge branch 'dev' of https://github.com/Mai-with-u/MaiBot into dev 2026-05-05 17:57:23 +08:00
SengokuCola
a5e4ac8531 pref:优化webui界面,增加prompt模板元信息 2026-05-05 17:57:19 +08:00
SengokuCola
41a2941518 Merge pull request #1637 from Maple127667/codex/fix-empty-tool-arguments
fix: 修复工具空参数解析失败,并规范化模型标识符
2026-05-05 16:43:57 +08:00
SengokuCola
0d43d3ec05 feat:webui默认infoLog,移除display_message字段 2026-05-05 16:39:35 +08:00
Maple_枫溪
9e944f7f85 fix: accept blank tool call arguments
Treat blank OpenAI-compatible tool call arguments as an empty dict so parameterless tools such as finish can execute with providers that return an empty string. Also trim model identifiers during config normalization to avoid leading whitespace leaking into requests and snapshots.
2026-05-05 05:06:26 +08:00
SengokuCola
d90230c552 Merge pull request #1635 from Blueteemo/fix/issue-1633-emoji-replace-description
fix: 修复表情包替换时emoji_replace prompt模板缺失description参数
2026-05-05 01:02:39 +08:00
SengokuCola
4641fa1a15 fix:修复qq号为int的问题,修复部分多行配置问题,修复多语言prompt问题 2026-05-05 00:32:49 +08:00
千岚之夏
bff0413761 fix: 修复表情包替换时缺失description参数导致KeyError 2026-05-04 23:46:52 +08:00
SengokuCola
94a0cb3a62 fix:数字配置读取有问题的问题 2026-05-04 23:09:46 +08:00
SengokuCola
eea95c1961 feat:webui支持更加优化的模型配置,优化多处UI体验,支持设置视觉和cache价格,修复多重表达不生效的问题,修复表情包路径错误 2026-05-04 22:52:41 +08:00
DawnARC
df799cdefa fix:更正默认值,避免意料之外的内存占用
用 os.environ.setdefault 将原生库线程数(OMP_NUM_THREADS、OPENBLAS_NUM_THREADS、MKL_NUM_THREADS、NUMEXPR_NUM_THREADS)的默认值设置为 "1"。这样可以确保导入的代码默认不会过度占用 CPU 线程(以及巨量内存)
2026-05-04 18:19:02 +08:00
hsd221
e962326f93 fix: 支持 HTTP 协议和内网地址访问,修复聊天 URL 缺协议前缀问题
- validate_public_url 默认允许 http 和 https 协议
- 移除 _is_forbidden_ip_address 中 is_private 和 is_site_local 拦截,允许内网 IP
- validate_public_url 中无 scheme 时自动补全 http://
- normalize_openai_base_url 中无协议前缀时自动补全 http://
- pyproject.toml 添加 httpx[socks] 依赖以支持 SOCKS 代理
2026-05-04 18:19:01 +08:00
SengokuCola
f57fc1ff80 fear:持续获取maisak监控(壳开关 2026-05-04 18:19:01 +08:00
SengokuCola
ccb1d60e06 feat:优化配置项分类,maisaka聊天流监控展示 2026-05-04 18:19:01 +08:00
SengokuCola
120acb835f fix:优化图片识别,优化webui配置和排版,优化聊天流监控,新增mcp显示,新增prompt修改面板,优化插件状态显示,优化长期记忆控制台, 2026-05-04 18:19:00 +08:00
SengokuCola
c5cd47adc2 feat:模型支持高级配置 2026-05-04 18:18:59 +08:00
SengokuCola
75e9453495 feat:优化webui多个页面的人机交互,修复插件地址问题,放宽插件id限制,增加高级页面缩进,统计页面快捷按钮,优化新手引导 2026-05-04 12:46:55 +08:00
SengokuCola
75665a4d38 Merge branch 'dev' of https://github.com/Mai-with-u/MaiBot into dev 2026-05-03 20:29:07 +08:00
SengokuCola
041ff63fba feat:支持高级配置 2026-05-03 20:28:30 +08:00
SengokuCola
ce224e0a13 Merge pull request #1624 from A-Dawn/feature/a-memorix-disabled-by-default
Feature/a memorix disabled by default
2026-05-03 20:22:17 +08:00
DawnARC
87716d18b7 fix:移动A_memorix配置项到botconfig 2026-05-03 20:15:30 +08:00
SengokuCola
db46551b51 允许本地webui构建运行 2026-05-03 17:59:29 +08:00
DawnARC
9090b72746 fix: 默认关闭 A_Memorix 运行时 2026-05-03 17:34:53 +08:00
SengokuCola
0252daf82a fix:修复模型误用 2026-05-03 15:36:10 +08:00
SengokuCola
b54e8981ef config:修改默认模型配置支持v4 2026-05-02 19:55:39 +08:00
SengokuCola
6326019390 fix:配置名错误 2026-05-02 18:47:36 +08:00
SengokuCola
6c21f57d8d fix:timing gate 裁切过度 2026-05-02 16:04:10 +08:00
SengokuCola
39e6a2d006 fix:修复无法发送表情包 2026-05-02 15:54:08 +08:00
SengokuCola
f9328840d0 fix:提及必回越过频率控制 2026-05-02 14:40:54 +08:00
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