Commit Graph

33 Commits

Author SHA1 Message Date
sky2002
7f35e70483 对openai的CoT模型进行特别修改 2025-03-07 14:39:16 +00:00
sky2002
8497441507 使支持流式输出 2025-03-07 14:17:03 +00:00
SengokuCola
f249f50994 v0.5.10 在根目录生成统计信息 2025-03-07 20:41:12 +08:00
SengokuCola
34907fdbf5 修改了模型命名 2025-03-07 18:41:41 +08:00
tcmofashi
965b1d1398 fix: 修复推理过程没有被获取的问题 2025-03-07 07:23:17 +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
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
e0e3ee4177 fix: update CQCode and Message classes for async initialization and processing 2025-03-07 01:31:03 +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
90e72db87b fix: 调整api接口的打印 2025-03-06 21:11:22 +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
SengokuCola
8bca235ecf Merge pull request #64 from tcmofashi/debug
Fix: 降低延迟,完善打印信息
2025-03-06 09:44:09 +08:00
tcmofashi
7c3fb28f10 fix: 修复打印格式 2025-03-06 08:18:33 +08:00
tcmofashi
dbfe9c0491 fix: 为log输出增加modelname 2025-03-06 02:23:58 +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
KawaiiYusora
a445c22250 <think>之我的LLM为什么只有一半TAG 2025-03-06 01:08:26 +08:00
tcmofashi
91d8ca80cf Merge remote-tracking branch 'upstream/debug' into debug 2025-03-06 00:09:33 +08:00
SengokuCola
a70f76c819 v0.5.4.0 记忆系统更新
移除jieba
2025-03-05 23:58:03 +08:00
tcmofashi
19e467febe fix: 被禁言导致发送线程死掉,修复所有的压缩,修复空日程的key error 2025-03-05 23:13:47 +08:00
tcmofashi
71a0176182 fix: 小修 2025-03-05 22:08:23 +08:00
tcmofashi
f29a7b646c 修改压缩 2025-03-05 19:19:34 +08:00
KawaiiYusora
8e48e72019 <think>之查缺补漏 (#53) 2025-03-05 09:27:52 +08:00
SengokuCola
ac9bd7af63 Merge branch 'debug' into debug 2025-03-04 23:35:46 +08:00
SengokuCola
438e7e9e9e 删除 5m以上缓存图片 2025-03-04 23:28:40 +08:00
KawaiiYusora
9823f2cb0e 增加<think>标签处理 2025-03-04 23:16:29 +08:00
SengokuCola
934fe5953a v0.5.0
重构了消息发送系统,口牙
2025-03-04 22:35:55 +08:00
NepPure
f4c383caf3 Replace print with Loguru logger for improved logging (#47)
* utils_model

* llm_module_memory_make.py

* from e
2025-03-04 15:27:37 +08:00
SengokuCola
dd4fb315df v0.4.1
修复了数据库命名问题
修复了嵌入模型未定义问题
2025-03-03 23:50:45 +08:00
SengokuCola
079bab753a littelchange 2025-03-03 17:30:08 +08:00
SengokuCola
6462c3b360 v0.4.0 支持任意替换的模型,改进配置文件
好好好好好好好好好
2025-03-02 23:51:47 +08:00