Commit Graph

8020 Commits

Author SHA1 Message Date
tcmofashi
a3b8a545af fix: 紧急为check功能加入开关 2025-03-07 03:12:35 +08:00
tcmofashi
ead9b8cfe4 Merge remote-tracking branch 'upstream/debug' into debug 2025-03-07 02:56:03 +08:00
tcmofashi
b7961af14c Merge remote-tracking branch 'upstream/debug' into debug 2025-03-07 02:55:20 +08:00
tcmofashi
00aadf0fc8 Merge pull request #72 from SaigyoujiYusora/refactor/unified_request
Refactor/unified request
2025-03-07 02:53:18 +08:00
tcmofashi
94fd4f5ddd fix: 对2MB以下的图片予以放行 2025-03-07 02:47:52 +08:00
tcmofashi
8d77cb0875 Merge pull request #73 from tcmofashi/debug
fix: 优化emotion,增加偷表情包设置,加强对动图的压缩
2025-03-07 02:23:20 +08:00
Rikki
c6cd38029f Merge branch 'SengokuCola:debug' into debug 2025-03-07 02:13:20 +08:00
tcmofashi
b77d73ddc7 feat: 现在可以设置是否自动保存表情包了 2025-03-07 01:49:42 +08:00
KawaiiYusora
a463f3a1a4 fix: issue (bug_risk): Reusing ClientSession across retries may lead to closed session issues. 2025-03-07 01:37:17 +08:00
KawaiiYusora
1becc5d2d9 Merge branch 'debug' of https://github.com/SengokuCola/MaiMBot into refactor/unified_request
# Conflicts:
#	src/plugins/chat/utils.py
2025-03-07 01:32:15 +08:00
KawaiiYusora
e0e3ee4177 fix: update CQCode and Message classes for async initialization and processing 2025-03-07 01:31:03 +08:00
tcmofashi
0ebd241077 fix: 增加设置模板,优化emotion,优化压缩 2025-03-07 01:06:36 +08:00
SengokuCola
71e851fbd4 fix
1
2025-03-07 00:34:58 +08:00
SengokuCola
8ef00ee571 v0.5.9
修复了记忆刷屏 加入了又新又好错别字生成器 增加了记忆过滤
2025-03-07 00:09:36 +08:00
KawaiiYusora
26f99664ee fix: cq_code async 2025-03-07 00:04:36 +08:00
KawaiiYusora
6ffa38c6ad Merge branch 'debug' of https://github.com/SengokuCola/MaiMBot into refactor/unified_request
# Conflicts:
#	src/plugins/models/utils_model.py
2025-03-06 23:52:39 +08:00
KawaiiYusora
11807fda38 refactor(models):统一请求处理并优化响应处理 (refactor/unified_request)
对 `utils_model.py` 中的请求处理逻辑进行重构,创建统一的请求执行方法 `_execute_request`。该方法集中处理请求构建、重试逻辑和响应处理,替代了 `generate_response`、`generate_response_for_image` 和 `generate_response_async` 中的冗余代码。

关键变更:
- 引入 `_execute_request` 作为 API 请求的单一入口
- 新增支持自定义重试策略和响应处理器
- 通过 `_build_payload` 简化图像和文本载荷构建
- 改进错误处理和日志记录
- 移除已弃用的同步方法
- 加入了`max_response_length`以兼容koboldcpp硬编码的默认值500

此次重构在保持现有功能的同时提高了代码可维护性,减少了重复代码
2025-03-06 23:50:14 +08:00
Rikki
9cd26659b6 Merge branch 'SengokuCola:debug' into debug 2025-03-06 21:45:57 +08:00
SengokuCola
21d1a69b6e Merge pull request #71 from tcmofashi/feature
Feature: 世界第二好的表情包管理系统
2025-03-06 21:22:34 +08:00
tcmofashi
e3c7fae61d fix: 增加设置项 2025-03-06 21:18:35 +08:00
tcmofashi
90e72db87b fix: 调整api接口的打印 2025-03-06 21:11:22 +08:00
tcmofashi
325fc21d89 Merge branch 'debug' into feature 2025-03-06 20:46:07 +08:00
SengokuCola
ee414eeaaf v0.5.8 修复 回复重复输出的bug 2025-03-06 19:56:57 +08:00
SengokuCola
41a94b98b0 Merge pull request #69 from SengokuCola/main
为什么debug落后了
2025-03-06 19:53:36 +08:00
SengokuCola
472e4fdf3b Merge pull request #68 from SaigyoujiYusora/debug
Windows一键启动脚本
极度智慧的
2025-03-06 19:51:59 +08:00
KawaiiYusora
c19a1166ba fix: 修补低于python3会错误启动 2025-03-06 19:43:42 +08:00
KawaiiYusora
f7a985b653 更新requirement 2025-03-06 19:39:27 +08:00
KawaiiYusora
94aee8ca10 Windows 一键启动脚本 2025-03-06 19:39:08 +08:00
Rikki
84e967c631 update: 屏蔽.vscode配置文件夹 2025-03-06 18:51:48 +08:00
SengokuCola
161995218e Merge pull request #66 from tcmofashi/debug
Fix: 为所有的模型请求添加请求头和请求体的报错
2025-03-06 16:15:59 +08:00
tcmofashi
35ae480faa Merge branch 'debug' into feature 2025-03-06 15:07:12 +08:00
tcmofashi
b1756f3808 Merge remote-tracking branch 'upstream/debug' into debug 2025-03-06 15:03:40 +08:00
tcmofashi
2f1579e5b7 fix: 为所有模型请求添加请求头和请求体的报错 2025-03-06 14:43:46 +08:00
SengokuCola
eaa711ada7 v0.5.7
记忆系统接入关键词,重新启动自主发言功能
2025-03-06 14:27:22 +08:00
jiajiu123
91505c7927 Merge pull request #65 from jiajiu123/main
更新默认 issue template
2025-03-06 12:25:35 +08:00
jiajiu123
b0e59a1ae7 Update bug_report.yml 2025-03-06 12:23:34 +08:00
jiajiu123
81f1bea69c 更新默认 issue template 2025-03-06 12:22:27 +08:00
SengokuCola
8bca235ecf Merge pull request #64 from tcmofashi/debug
Fix: 降低延迟,完善打印信息
2025-03-06 09:44:09 +08:00
HYY
59af990923 Merge pull request #63 from SaigyoujiYusora/debug
fix: <think> was not generated
2025-03-06 08:30:31 +08:00
tcmofashi
d653ffe131 Merge branch 'debug' into feature 2025-03-06 08:18:51 +08:00
tcmofashi
7c3fb28f10 fix: 修复打印格式 2025-03-06 08:18:33 +08:00
tcmofashi
a612519d56 feat: 新增表情包过滤,奶龙再见 2025-03-06 07:22:36 +08:00
tcmofashi
77076a505f Merge branch 'debug' into feature 2025-03-06 06:45:32 +08:00
tcmofashi
3897c9787a fix: 后置emotion生成,大幅提高响应速度 2025-03-06 06:45:20 +08:00
tcmofashi
fea3285d20 feat: emoji选择逻辑优化 2025-03-06 06:30:27 +08:00
tcmofashi
052c9c32c4 Merge branch 'debug' into feature 2025-03-06 02:24:08 +08:00
tcmofashi
dbfe9c0491 fix: 为log输出增加modelname 2025-03-06 02:23:58 +08:00
tcmofashi
a896cf5ec4 fix: 兼容tag 2025-03-06 02:13:54 +08:00
tcmofashi
7306a05dc2 Merge branch 'debug' into feature 2025-03-06 01:55:47 +08:00
KawaiiYusora
bd982ba556 Merge branch 'debug' of https://github.com/SengokuCola/MaiMBot into debug
# Conflicts:
#	src/plugins/models/utils_model.py
2025-03-06 01:11:37 +08:00