陈曦
f41c2113dc
feat:为 LPMM 流水线脚本添加非交互模式
...
为 info_extraction.py、import_openie.py、delete_lpmm_items.py 以及新增的 lpmm_manager.py 引入统一的 --non-interactive 参数,使其能够在 CI 和自动化场景下实现完全脚本化、无交互运行。新增了一个功能完整的命令行管理脚本(lpmm_manager.py)以及一份详细的用户指南(lpmm_pipelines_guide.md)。同时,更新了 test_lpmm_retrieval.py,以支持通过 CLI 自定义测试用例,并改进了整个流水线中的错误处理和用户提示。最后,从文档和代码中移除了 ppr_relation_cap 参数。
2025-12-18 20:40:05 +08:00
Dawn ARC
20c9cbad3e
Merge branch 'dev' into feat-lpmm知识库加强
2025-12-18 18:58:10 +08:00
SengokuCola
216c51d7a2
feat:可以关闭回复前黑话自动提取
2025-12-18 17:34:32 +08:00
SengokuCola
11dd9ece13
feat:表达方式可以多种随机
2025-12-18 17:07:54 +08:00
SengokuCola
f7a2f2329a
better:优化表达方式学习和分割
2025-12-18 16:39:16 +08:00
SengokuCola
dd891c4b18
Merge branch 'dev' of https://github.com/Mai-with-u/MaiBot into dev
2025-12-18 14:42:30 +08:00
tcmofashi
858f50a959
Merge pull request #1444 from tcmofashi/dev
...
fix: 再次修复消息发送
2025-12-18 14:41:21 +08:00
SengokuCola
249ce08cfb
Merge branch 'dev' of https://github.com/Mai-with-u/MaiBot into dev
2025-12-18 14:38:36 +08:00
墨梓柒
e46e93e0b6
feat: 添加插件原始配置的获取和更新接口,支持配置文件备份
2025-12-18 14:02:16 +08:00
tcmofashi
7ad97158c4
fix: 再次修复消息发送
2025-12-18 13:50:50 +08:00
SengokuCola
4946a98dae
Merge branch 'dev' of https://github.com/Mai-with-u/MaiBot into dev
2025-12-18 13:06:56 +08:00
tcmofashi
b82389e4a2
fix: 修复消息发送
2025-12-18 12:21:33 +08:00
SengokuCola
093b4c615a
fix:只显示一次log输出
2025-12-18 10:58:53 +08:00
SengokuCola
becc87930d
Merge branch 'dev' of https://github.com/Mai-with-u/MaiBot into dev
2025-12-18 10:53:02 +08:00
SengokuCola
1e159213cf
better:优化分割,优化表达使用,优化Planner选择和联动,优化记忆总结,优化回复Log
2025-12-18 10:52:58 +08:00
tcmofashi
dc95ea25a2
Merge pull request #1432 from tcmofashi/dev
...
feat: 支持maim_message api-server模式
2025-12-17 15:26:13 +08:00
墨梓柒
eec503ae31
Merge branch 'dev' of https://github.com/MaiM-with-u/MaiBot into dev
2025-12-16 17:35:53 +08:00
SengokuCola
3ea775af92
Update config.py
...
Update changelog.md
2025-12-16 15:03:38 +08:00
SengokuCola
52e3e9c297
feat:修复提及必回
2025-12-16 14:59:04 +08:00
墨梓柒
48f2d1c33c
feat: 增强 Cookie 设置日志,提供 HTTPS 配置建议
2025-12-16 13:19:47 +08:00
墨梓柒
a5880522e7
feat: 增强认证 Cookie 设置,支持协议检测和跳过注释行
2025-12-16 13:04:37 +08:00
墨梓柒
4482be7142
feat: 更新认证 Cookie 设置和状态检查日志记录
2025-12-16 12:50:13 +08:00
SengokuCola
6e9baff87f
Merge branch 'dev' of https://github.com/Mai-with-u/MaiBot into dev
2025-12-15 00:07:31 +08:00
SengokuCola
3db9fafe65
feat:黑化和表达不会将名字总结进去
2025-12-15 00:05:15 +08:00
墨梓柒
74a2f4346a
Ruff Format
2025-12-14 21:39:09 +08:00
陈曦
debc39bacf
bug:修复前端认证错误处理401导致无法登录的问题
...
修改 get_ws_token 的行为:当认证缺失或已过期时,返回 HTTP 200 且 success=False,而不是 401。这样可以避免用户停留在登录页面时,前端因收到 401 而不必要地刷新页面。
2025-12-14 21:27:04 +08:00
陈曦
c3c5bc337d
Update webui_server.py
2025-12-14 21:00:18 +08:00
Dawn ARC
72786687b9
Merge branch 'Mai-with-u:dev' into dev
2025-12-14 20:26:21 +08:00
墨梓柒
c2a6d491c6
添加 robots.txt 路由,禁止搜索引擎索引,增强隐私保护;为 HTML 文件添加防索引头
2025-12-14 20:11:16 +08:00
墨梓柒
6055b087f0
添加 WebSocket 认证模块,支持临时 token 认证机制,增强安全性并解决 Cookie 不可用问题
2025-12-14 20:08:49 +08:00
陈曦
bccef9f104
feat:增强反爬虫的 IP 清理机制和静态资源校验
...
优化 IP 清理逻辑,完整扫描并清除最旧或空的 IP 记录,从而提升内存管理效果。更新静态资源的放行规则,改为基于路径前缀进行限制,并从允许的扩展名中移除 .json,以防止通过静态资源规则绕过 API。进一步明确 X-Forwarded-For 的信任逻辑,并更新相关环境变量的注释,提供更清晰的配置指引。
2025-12-14 19:56:11 +08:00
陈曦
97c872f4f2
feat:增强反爬虫中间件,对受信任代理提供支持
...
重构反爬虫逻辑,使用 deque 存储请求时间戳,以提升性能和内存管理效率。新增通过 WEBUI_TRUSTED_PROXIES 和 WEBUI_TRUST_XFF 配置受信任代理的支持,从而实现对 X-Forwarded-For 请求头的选择性信任。将可疑请求头的检测限制在特定请求头范围内,减少误判。更新 template.env,新增与代理相关的环境变量。
2025-12-14 19:47:07 +08:00
墨梓柒
ea420f9f59
添加认证依赖和请求频率限制模块,增强安全性和防止API滥用
2025-12-14 19:39:56 +08:00
陈曦
16271718a7
Revert main.py
2025-12-14 19:31:11 +08:00
陈曦
f6adc8bcf7
Update webui_server.py
2025-12-14 19:28:23 +08:00
陈曦
223a6b7333
Update main.py
2025-12-14 19:25:34 +08:00
陈曦
3461ffcfd0
Merge branch 'dev' of https://github.com/A-Dawn/MaiBot into dev
2025-12-14 19:24:16 +08:00
陈曦
32af5ae29a
feat:为 WebUI 添加防爬虫与资产测绘检测,支持多种防护模式与 IP 白名单,资源占用低。
...
新增功能:
防爬虫检测:检测 20+ 种爬虫和 30+ 种资产测绘工具(Shodan、Censys、Nmap 等)
多种模式:basic(只记录,默认)、strict(严格)、loose(宽松)、false(禁用)
IP 白名单:支持精确 IP、CIDR、通配符格式,白名单 IP 豁免所有检测
请求频率限制:基于 IP 的滑动时间窗口,防止高频请求
2025-12-14 19:21:02 +08:00
陈曦
32a6d1a520
fix:修改webui默认配置暴露端口为127.0.0.1
...
将 WebUI 服务的默认监听地址从 0.0.0.0 修改为 127.0.0.1,以提升安全性,默认仅允许本地访问。同步调整了相关日志提示以及 template.env 中的注释说明,明确如何在需要时显式开启对外访问。
2025-12-14 16:40:37 +08:00
tcmofashi
c69ec06130
feat: 支持maim_message api-server模式
2025-12-14 12:36:25 +08:00
墨梓柒
0b87b32480
更新插件系统文档和配置类型定义
2025-12-14 01:06:38 +08:00
墨梓柒
5cd15cdd1e
添加配置数据验证失败的错误日志记录,并处理已删除提供商的模型引用问题
2025-12-13 18:38:53 +08:00
墨梓柒
e680a4d1f5
Ruff format
2025-12-13 17:14:09 +08:00
墨梓柒
ef377bb0cd
Merge branch 'dev' of https://github.com/MaiM-with-u/MaiBot into dev
2025-12-13 15:13:25 +08:00
墨梓柒
ee59f270f8
添加对视频卡片、音乐卡片和小程序分享卡片消息的处理
2025-12-13 15:13:18 +08:00
SengokuCola
398ba3988a
Merge pull request #1430 from A0000Xz/dev
...
恢复表达学习的正常使用
2025-12-13 10:48:26 +08:00
A0000Xz
307a76d58a
恢复表达学习的正常使用
2025-12-13 01:47:14 +08:00
xiaoxi68
613f8e8783
fix: 规范 OpenAI/Gemini 客户端图片 MIME(jpg/jpeg→image/jpeg)
2025-12-13 01:20:33 +08:00
SengokuCola
b73a748f52
feat:优化think_mode,修复表情包选取bug
2025-12-13 00:12:13 +08:00
SengokuCola
52acf0c167
Update planner.py
2025-12-12 23:52:14 +08:00
SengokuCola
08ce18e0f4
Merge branch 'dev' of https://github.com/Mai-with-u/MaiBot into dev
2025-12-12 23:50:59 +08:00
SengokuCola
110431e6d2
feat:添加思考深度配置
2025-12-12 23:50:55 +08:00
SengokuCola
0b8cf97925
Merge pull request #1425 from exynos967/dev1211
...
fix: 修复工具调用 JSON Schema 中 float 类型导致的 422 错误
2025-12-12 19:27:25 +08:00
Zayrex
1273f7a6ab
Fix emoji emotion parsing for different delimiters
2025-12-12 10:56:01 +08:00
Zayrex
9e89501888
Fix emotion parsing by replacing Chinese commas
...
Replace Chinese comma with English comma in emotion parsing.
2025-12-12 10:16:01 +08:00
墨梓柒
090bbb954b
实现消息段解析功能,支持多种消息类型的处理
2025-12-12 00:36:40 +08:00
xiaoxi68
3b964307ce
fix: 修复工具调用 JSON Schema 中 float 类型导致的 422 错误
2025-12-11 20:00:47 +08:00
Dawn ARC
423c81224d
Merge branch 'Mai-with-u:main' into feat-lpmm知识库加强
2025-12-10 18:12:42 +08:00
SengokuCola
8bbbedf0b4
Merge branch 'dev-0.12' into dev
2025-12-10 14:55:49 +08:00
Process Xie
53d0e91d02
fix: 工具调用的时候可能出现的无法解析参数问题
2025-12-09 20:18:37 +08:00
SengokuCola
342a1e22c4
feat:仅保留两种思考力度
2025-12-08 20:13:39 +08:00
SengokuCola
a0ba073cfb
remove:人格的兴趣配置项移动到planner prompt中
2025-12-08 19:24:04 +08:00
墨梓柒
00c1e7d601
优化由于WebUI启动时端口占用导致异常退出没有提示的问题
2025-12-08 18:48:11 +08:00
SengokuCola
910c73be73
feat:默认开启planner replyer联动
2025-12-07 23:54:04 +08:00
SengokuCola
3798933f91
fix:私聊自我回复炸裂
2025-12-07 23:45:54 +08:00
SengokuCola
20c97b9cc9
feat:表达方式根据不同thinking level进分别处理
2025-12-07 23:38:20 +08:00
SengokuCola
d2a4abc33f
feat:根据回复力度,启用不同的prompt
2025-12-07 16:45:37 +08:00
SengokuCola
b03e245817
test:合并express提取和Jargon提取
2025-12-07 16:24:13 +08:00
SengokuCola
2e31fa2055
feat:复用jargon和expression的部分代码,代码层面合并,合并配置项
...
缓解bot重复学习自身表达的问题
缓解单字黑话推断时消耗过高的问题
修复count过高时推断过长的问题
移除表达方式学习强度配置
2025-12-07 14:28:30 +08:00
SengokuCola
717b18be1e
feat:思考级别控制
2025-12-07 13:20:02 +08:00
SengokuCola
903e0f278a
remove:自动频率控制
2025-12-07 11:42:49 +08:00
SengokuCola
eb86d3ed43
remove:移除情绪功能
2025-12-07 00:56:06 +08:00
晴空
3e555dd66c
Remove unused _deep_merge function
...
Removed the _deep_merge function from plugin_routes.py.
2025-12-06 23:20:20 +08:00
晴空
f7ac70fa1e
Add deep_merge function and improve key handling
...
Add a function to deep merge two dictionaries, allowing src values to overwrite or merge into dst. Update key handling in normalize_dotted_keys to improve logging and handling of empty keys.
2025-12-06 23:12:32 +08:00
晴空
a14e5b84c1
Implement utility functions for plugin config handling
...
Added utility functions for normalizing dotted keys and coercing types in plugin configuration.
2025-12-06 22:45:38 +08:00
SengokuCola
441fc0b742
feat:优化记忆查询的超时设置
2025-12-06 18:59:45 +08:00
SengokuCola
83ec86f28b
config:change some parameters
2025-12-06 15:02:40 +08:00
SengokuCola
553a4123fb
fix:不知道为什么一直冒出来
2025-12-06 00:32:50 +08:00
SengokuCola
34825abaa7
fix:表达和聊天配置项为0时bug
2025-12-05 21:23:00 +08:00
SengokuCola
bc045a0c85
feat:可配置做梦时间段
...
Update bot_config_template.toml
2025-12-05 13:53:07 +08:00
SengokuCola
c3798e1a8d
fix:解析动作错误
2025-12-05 13:46:09 +08:00
SengokuCola
541799b1c2
feat:添加结束对话动作
2025-12-05 13:24:02 +08:00
SengokuCola
cef094e125
feat:重构pf brain chat使用react
2025-12-05 01:51:19 +08:00
SengokuCola
95a1712c90
feat:为私聊增加checker和次级回复,更多动作
2025-12-04 23:39:09 +08:00
SengokuCola
a155194157
Create search_jargon_tool.py
2025-12-04 20:38:49 +08:00
SengokuCola
add29efefc
better:优化做梦表现
2025-12-04 20:00:20 +08:00
SengokuCola
0399f878f0
config:增加两个配置项,梦起始时间和全局记忆
2025-12-04 19:59:57 +08:00
墨梓柒
12bc661790
feat: 添加模型级别最大token数配置,并更新相关逻辑以支持优先级处理
2025-12-03 11:45:15 +08:00
墨梓柒
6680afaa4a
feat: 更新 token 处理逻辑,清除 Cookie 并要求用户重新登录;保留 first_setup_completed 状态
2025-12-03 11:31:13 +08:00
墨梓柒
f8446e6bf7
Merge pull request #1398 from Ronifue/dev
...
fix: 修复保存toml时的空行累计bug和注释丢失问题
2025-12-03 10:50:58 +08:00
墨梓柒
d97c6aa948
feat: 添加模型级别温度配置并优化温度优先级处理逻辑
2025-12-03 10:45:20 +08:00
SengokuCola
056a909c77
feat:将是否拦截改为拦截登记
2025-12-03 09:52:23 +08:00
SengokuCola
f85c5e9b5f
feat :做梦
2025-12-03 01:00:43 +08:00
SengokuCola
7f66d5588d
better:优化表达方式提取的token消耗
2025-12-03 00:21:02 +08:00
Ronifue
940e4a5f6b
Merge branch 'dev' of https://github.com/Ronifue/MaiBot into dev
2025-12-02 16:21:04 +08:00
Ronifue
dd73030919
fix: 简化逻辑
2025-12-02 16:20:44 +08:00
Lofu
07bc84d21f
Merge branch 'Mai-with-u:dev' into dev
2025-12-02 16:11:58 +08:00
SengokuCola
34129bafad
fix:ruff
2025-12-02 16:04:18 +08:00
Ronifue
2b7559b8cc
fix: 修复保存toml时偶发的空行累计bug和注释丢失问题
2025-12-02 16:00:05 +08:00
SengokuCola
138bd8ec70
feat:优化黑话附加
2025-12-02 15:43:46 +08:00