Commit Graph

55 Commits

Author SHA1 Message Date
Maple_枫溪
9e944f7f85 fix: accept blank tool call arguments
Treat blank OpenAI-compatible tool call arguments as an empty dict so parameterless tools such as finish can execute with providers that return an empty string. Also trim model identifiers during config normalization to avoid leading whitespace leaking into requests and snapshots.
2026-05-05 05:06:26 +08:00
Soulter
45cd00e343 fix(llm): support reasoning field for OpenRouter and Groq
fixes: #1600
2026-04-26 22:45:37 +08:00
SengokuCola
be2248b283 feat:为日志添加上限和配置防止膨胀 2026-04-25 14:45:35 +08:00
SengokuCola
9759018a0c feat:支持模型缓存和相关配置 2026-04-25 13:53:30 +08:00
SengokuCola
2471a2c4a4 fix:工具调用存储问题 2026-04-13 19:54:38 +08:00
SengokuCola
ff75930466 fix:解决qwen3.5空回复问题 2026-04-12 15:06:08 +08:00
SengokuCola
6db380b10d fix:修复回复器格式问题,记录完整空回复请求 2026-04-11 21:23:31 +08:00
SengokuCola
243b8deb43 feat:展示更详细的工具信息,修改wait定义 2026-04-09 19:58:20 +08:00
SengokuCola
09bce14664 feat:为失败请求留档并提供重试分析 2026-04-07 15:16:06 +08:00
SengokuCola
fe6ccaaf86 fix:部分模型不支持gif 2026-04-01 19:56:08 +08:00
SengokuCola
efb84df768 fix:无参工具在某些api报错 2026-04-01 18:28:00 +08:00
DrSmoothl
0a08973c41 feat: Enhance emoji and image management with asynchronous background processing
- Added support for scheduling background tasks to build emoji and image descriptions when not found in cache.
- Improved error handling and logging for emoji and image processing.
- Updated `SessionMessage` processing to allow for optional heavy media analysis and voice transcription.
- Refactored logging messages for better clarity and consistency across various modules.
- Introduced a new function to build outbound log previews for messages, enhancing logging capabilities.
2026-03-26 23:03:47 +08:00
DrSmoothl
777d4cb0d2 feat: Enhance OpenAI compatibility and introduce unified LLM service data models
- Refactored model fetching logic to support various authentication methods for OpenAI-compatible APIs.
- Introduced new data models for LLM service requests and responses to standardize interactions across layers.
- Added an adapter base class for unified request execution across different providers.
- Implemented utility functions for building OpenAI-compatible client configurations and request overrides.
2026-03-26 16:15:42 +08:00
DrSmoothl
5cccdf6715 feat(llm): 添加响应格式转换功能,支持JSON_SCHEMA输出 2026-03-04 21:11:10 +08:00
DrSmoothl
eaef7f0e98 Ruff Format 2026-02-21 16:24:24 +08:00
UnCLAS-Prommer
77725ba9d8 逐步适配新的config 2026-01-15 23:51:19 +08:00
SengokuCola
72ef7bade2 Merge pull request #1420 from xcr1234/dev
fix: 工具调用的时候可能出现的无法解析参数问题
2025-12-29 19:07:32 +08:00
xiaoxi68
613f8e8783 fix: 规范 OpenAI/Gemini 客户端图片 MIME(jpg/jpeg→image/jpeg) 2025-12-13 01:20:33 +08:00
xiaoxi68
3b964307ce fix: 修复工具调用 JSON Schema 中 float 类型导致的 422 错误 2025-12-11 20:00:47 +08:00
Process Xie
53d0e91d02 fix: 工具调用的时候可能出现的无法解析参数问题 2025-12-09 20:18:37 +08:00
墨梓柒
44f427dc64 Ruff fix 2025-11-19 23:35:14 +08:00
SengokuCola
ebe224b0a1 fix:bool和boolean问题 2025-11-13 23:43:35 +08:00
SengokuCola
d306e40db0 Merge branch 'dev' of https://github.com/Mai-with-u/MaiBot into dev 2025-11-13 19:00:59 +08:00
SengokuCola
f2819be5e9 feat:lpmm可选接入memory agent,将memory agent改为标准工具格式,修改llm_utils以兼容 2025-11-13 18:55:37 +08:00
墨梓柒
7839acd25d Ruff fix 2025-11-13 13:24:55 +08:00
SengokuCola
7b3793f366 better:优化log和添加changelog 2025-11-09 14:14:57 +08:00
SengokuCola
03e06c282c feat:可以对不同chat自定义一段额外prompt 2025-11-05 00:35:16 +08:00
xiaoxi68
50e0bc6513 fix(openai): 修复空回复 TypeError(choices=None),并在抛错前输出调试日志 2025-11-01 16:40:36 +08:00
SengokuCola
c6dadc2872 fix:截断Log优化 2025-10-30 11:30:48 +08:00
foxplaying
d7c093f21c 新增截断检测 2025-10-03 02:31:23 +08:00
墨梓柒
e9a5488b62 Ruff Fix 2025-09-28 00:02:18 +08:00
UnCLAS-Prommer
3a2685cf26 Merge pull request #1264 from foxplaying/patch-2
Gemini:优化处理
2025-09-26 10:21:37 +08:00
SengokuCola
11cc7ced13 fix:修复(也许)吞字问题 2025-09-25 20:20:04 +08:00
foxplaying
e97af77fc8 fix 2025-09-24 21:04:11 +08:00
UnCLAS-Prommer
bfe4943b18 更优雅的解决问题 2025-09-11 21:12:08 +08:00
SengokuCola
a4285673aa feat:改为单planner,并解析多个动作 2025-09-11 14:25:02 +08:00
SengokuCola
8ed94d1f26 修复付费emb模型的问题 2025-09-11 00:25:33 +08:00
墨梓柒
163dbb6b90 超级Ruff 2025-09-09 19:25:12 +08:00
google-labs-jules[bot]
6483955919 fix(llm): Add retry mechanism for empty API responses 2025-08-25 19:41:13 +08:00
墨梓柒
a8ff08e2a7 优化异步处理,避免事件循环问题并增强错误日志记录 2025-08-19 16:59:51 +08:00
UnCLAS-Prommer
e28e7e08e8 more typing fix和防炸 2025-08-12 17:08:35 +08:00
晴空
c1d5c3d9e8 fix(stream): 跳过空 choices 的 SSE 帧并记录 usage,避免流式解析越界 2025-08-12 02:41:38 +08:00
SengokuCola
35c13986d1 Update openai_client.py 2025-08-09 00:10:57 +08:00
SengokuCola
721546fff9 fix:通过计时定位LLM异常延时,移除memory模型 2025-08-08 22:10:08 +08:00
UnCLAS-Prommer
1f53ecff10 加上tools的enum属性 2025-08-03 10:27:47 +08:00
UnCLAS-Prommer
9afa549aee 让Gemini的图像可用,修复部分typing 2025-08-03 00:49:19 +08:00
UnCLAS-Prommer
75689d760d ruff 2025-08-01 14:33:24 +08:00
Windpicker-owo
fcaa78f9a5 删除了add_file_content 2025-08-01 12:49:09 +08:00
Windpicker-owo
49af7b0c65 修改了错误的注释
Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
2025-08-01 03:40:24 +08:00
Windpicker-owo
25cb8d41bb 修复了语音识别功能 2025-08-01 03:32:00 +08:00