6239 Commits

Author SHA1 Message Date
Rikki
c75bce6164 fix: 检查是否 <没有找到> emoji ,修复 0 emoji 时报错问题 2025-03-08 03:48:02 +08:00
sky2002
306d30670c 修改temperature拼写错误 2025-03-07 19:41:35 +00:00
Rikki
769fb42598 fix: 修复流式支持导致的故障 2025-03-08 03:17:20 +08:00
Rikki
94216e352b Merge pull request #91 from sky2002/feat/支持流式输出模型功能debug
Feat/支持流式输出模型功能debug
TODO: pr #91 需要未来考虑用户使用其他聚合api的可能性
2025-03-08 01:54:52 +08:00
sky2002
9417eb411f 修改了错误的传参 2025-03-07 17:35:31 +00:00
sky2002
d81b3fb43d 支持流式输出模型功能debug 2025-03-07 17:25:17 +00:00
SengokuCola
e2d8f68066 Merge branch 'debug' of https://github.com/SengokuCola/MaiMBot into debug 2025-03-08 01:02:26 +08:00
SengokuCola
f65099e8ee v0.5.11 添加了情绪管理器 2025-03-08 01:02:20 +08:00
Rikki
88093502a9 Merge pull request #85 from sky2002/feature/支持流式传输
支持流式输出
2025-03-08 00:11:20 +08:00
gyc123456-1
1d40ca9059 Merge branch 'debug' into patch-1 2025-03-07 22:39:30 +08:00
sky2002
7f35e70483 对openai的CoT模型进行特别修改 2025-03-07 14:39:16 +00:00
gyc123456-1
2ec261c544 表情CQ码映射 2025-03-07 22:26:40 +08:00
gyc123456-1
ceb52621d1 解析face类型CQ码 2025-03-07 22:24:58 +08:00
sky2002
8497441507 使支持流式输出 2025-03-07 14:17:03 +00:00
sky2002
cdb44d70b4 使用generate_response_async 2025-03-07 13:39:14 +00:00
sky2002
232348fe7a 使用generate_response_async 2025-03-07 13:37:44 +00:00
SengokuCola
f249f50994 v0.5.10 在根目录生成统计信息 2025-03-07 20:41:12 +08:00
SengokuCola
d2f348ae2c Merge branch 'debug' of https://github.com/SengokuCola/MaiMBot into debug 2025-03-07 19:29:17 +08:00
SengokuCola
0e72c7444b 降低了回复表情包的可能
1
2025-03-07 19:22:24 +08:00
tcmofashi
a527e5ce76 fix: 修复获取的消息没有time字段 2025-03-07 19:17:11 +08:00
SengokuCola
34907fdbf5 修改了模型命名 2025-03-07 18:41:41 +08:00
SengokuCola
68b696b8aa fix config
12
2025-03-07 18:16:06 +08:00
SengokuCola
4a27446430 修复没移除干净
1
2025-03-07 13:30:50 +08:00
SengokuCola
c11dd85790 移除所有雪Nlp 2025-03-07 10:25:58 +08:00
tcmofashi
e48d93b7cb feat: 对自己发出的表情包提供描述 2025-03-07 09:24:25 +08:00
tcmofashi
5bf94d34a1 fix: 修改message_sending中cq码被翻译的问题 2025-03-07 08:46:36 +08:00
tcmofashi
965b1d1398 fix: 修复推理过程没有被获取的问题 2025-03-07 07:23:17 +08:00
tcmofashi
9bb9fc1b28 fix: 修复bot消息未调用异步显式初始化导致的空消息bug 2025-03-07 07:03:05 +08:00
tcmofashi
15c99ff32d Merge remote-tracking branch 'upstream/debug' into debug 2025-03-07 06:45:37 +08:00
Rikki
5cfcb60b46 Merge remote-tracking branch 'upstream/debug' into debug 2025-03-07 06:42:24 +08:00
Rikki
b69c9ac7f7 fix: 修复不应用 embedding 模型配置的现象 2025-03-07 05:50:59 +08:00
tcmofashi
bb35faa363 fix: 修复表情查询为空 2025-03-07 04:07:26 +08:00
tcmofashi
d0047e82bf fix: 去除emoji_manager中的图片压缩 2025-03-07 04:01:09 +08:00
tcmofashi
0ced4939ec fix: 修改embedding 2025-03-07 03:40:14 +08:00
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
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
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
tcmofashi
e3c7fae61d fix: 增加设置项 2025-03-06 21:18:35 +08:00
tcmofashi
90e72db87b fix: 调整api接口的打印 2025-03-06 21:11:22 +08:00