tcmofashi
|
a3b8a545af
|
fix: 紧急为check功能加入开关
|
2025-03-07 03:12:35 +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
|
b77d73ddc7
|
feat: 现在可以设置是否自动保存表情包了
|
2025-03-07 01:49:42 +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 |
|
tcmofashi
|
0ebd241077
|
fix: 增加设置模板,优化emotion,优化压缩
|
2025-03-07 01:06:36 +08:00 |
|
SengokuCola
|
71e851fbd4
|
fix
1
|
2025-03-07 00:34:58 +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 |
|
SengokuCola
|
3fec29d045
|
v0.5.2 记忆系统更新
|
2025-03-05 16:48:53 +08:00 |
|
tcmofashi
|
0b16001ae7
|
fix: 主题提取bug修复,了吗?
|
2025-03-04 19:56:04 +08:00 |
|
tcmofashi
|
5a46ee7c70
|
fix: 调整topic提取的设置
|
2025-03-04 19:40:00 +08:00 |
|
tcmofashi
|
30bfc45816
|
fix: 解决反斜杠,toml加入人格
|
2025-03-04 11:09:25 +08:00 |
|
tcmofashi
|
ae830ff1ec
|
Merge remote-tracking branch 'upstream/debug' into feature
|
2025-03-04 10:08:59 +08:00 |
|
KawaiiYusora
|
038fa512aa
|
初次启动检测
|
2025-03-04 01:17:50 +08:00 |
|