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 |
|
tcmofashi
|
92cda4c2b6
|
fix: 删除XX
|
2025-03-04 09:43:24 +08:00 |
|
tcmofashi
|
bfca391a69
|
feat: 增加ban words
|
2025-03-04 09:03:39 +08:00 |
|
tcmofashi
|
341ffb91ec
|
fix: 修改toml
|
2025-03-04 08:26:45 +08:00 |
|
KawaiiYusora
|
038fa512aa
|
初次启动检测
|
2025-03-04 01:17:50 +08:00 |
|
SengokuCola
|
e014617cdb
|
123
1
|
2025-03-03 23:03:39 +08:00 |
|
KawaiiYusora
|
d807ddc897
|
更新config
|
2025-03-03 20:30:17 +08:00 |
|
SengokuCola
|
6462c3b360
|
v0.4.0 支持任意替换的模型,改进配置文件
好好好好好好好好好
|
2025-03-02 23:51:47 +08:00 |
|
SengokuCola
|
12e759f3ad
|
屎山修补术
修改了bot_toml加载逻辑
|
2025-03-02 20:56:38 +08:00 |
|
HYY1116
|
6e2d229cb7
|
回来吧,我的config
|
2025-03-02 19:59:00 +08:00 |
|
HYY1116
|
f48f33a999
|
fix: 模型优先使用无需付费模型,并模型名称全局化
|
2025-03-02 19:48:25 +08:00 |
|
SengokuCola
|
1cd7f80937
|
v0.3.2 更改了.env config的逻辑和memory优化
v0.3.2
更改了.env config的逻辑
memory优化
读空气优化
|
2025-03-02 15:00:12 +08:00 |
|
NepPure
|
86b76496f6
|
统一database config,修复.env
|
2025-03-02 10:54:31 +08:00 |
|
SengokuCola
|
50c1765b81
|
v0.3.1 实装了记忆系统和自动发言
哈哈哈
|
2025-03-02 00:14:25 +08:00 |
|