Commit Graph

26 Commits

Author SHA1 Message Date
雅诺狐
1b81694373 Add aiohttp_gemini client type and update TaskConfig defaults
Added 'aiohttp_gemini' to allowed client types in APIProvider. Updated TaskConfig defaults: max_tokens to 800, temperature to 0.7, and concurrency_count to 1 for improved default behavior.
2025-11-19 22:44:49 +08:00
雅诺狐
0cb9705946 修复硬编码错误 2025-11-19 22:44:49 +08:00
雅诺狐
609bcb385b 修复硬编码错误 2025-11-19 22:44:48 +08:00
tt-P607
d78c449b37 修复AttributeError异常**:
- 在ChatConfig中添加get_current_talk_frequency()方法
   - 在ExpressionConfig中添加get_expression_config_for_chat()方法,但是模型配置文件依旧被架空力😭😭😭我解决不了,帮帮我!雅诺狐姐姐!😭😭😭
2025-11-19 22:44:47 +08:00
雅诺狐
bb4592846c Refactor config system to use Pydantic validation
Refactored configuration classes to inherit from a new ValidatedConfigBase using Pydantic for robust validation and error reporting. Updated api_ada_configs.py, config.py, config_base.py, and official_configs.py to replace dataclasses with Pydantic models, add field validation, and improve error messages. This change enhances configuration reliability and developer feedback for misconfigurations. Also includes minor code cleanups and removal of unused variables in other modules.
2025-11-19 22:44:45 +08:00
雅诺狐
16da725272 Add LLM anti-prompt injection system
Introduces a comprehensive anti-prompt injection system for LLMs, including rule-based and LLM-based detection, user ban/whitelist management, message shielding, and statistics tracking. Adds new modules under src/chat/antipromptinjector, integrates anti-injection checks into the message receive flow, updates configuration and database models, and provides test scripts. Also updates templates and logger aliases to support the new system.
2025-11-19 22:43:57 +08:00
minecraft1024a
cd9c46333c feat(maizone): 新增独立的maizone模型配置
为maizone功能添加了专属的模型任务配置`maizone`,使其可以与默认的回复模型`replyer_1`使用不同的模型和参数。

- 在`ModelTaskConfig`中增加了`maizone`字段。
- 将`maizone_refactored`插件的默认模型从`replyer_1`修改为`maizone`。
- 在配置文件模板中添加了`[model_task_config.maizone]`的默认配置。
2025-11-19 22:43:15 +08:00
minecraft1024a
176a6b9c2e feat(config): 为表情包识别添加独立的VLM模型配置
为表情包识别功能(emoji_vlm)引入了专门的模型任务配置,使其与通用的视觉语言模型(VLM)配置分离。这提高了配置的灵活性和模块化程度。

- 在 `api_ada_configs.py` 中新增 `emoji_vlm` 任务配置。
- 更新 `emoji_manager.py` 以使用新的 `emoji_vlm` 配置。
- 在 `model_config_template.toml` 中添加了相应的配置模板。
2025-11-19 22:42:27 +08:00
minecraft1024a
faae523b04 添加并发请求支持,更新LLMRequest类以允许根据配置的并发数量进行异步请求 2025-11-19 22:40:04 +08:00
Furina-1013-create
2d22b3d561 我靠我我视频识别怎么又给我炸了
--已重新修复......
2025-11-19 22:38:52 +08:00
minecraft1024a
df3616e481 优化API调用超时提示信息,增加空回复重试逻辑(应该能用) 2025-11-19 22:37:25 +08:00
雅诺狐
2e6ae2419b 优化项目结构,格式化代码 2025-11-19 22:35:40 +08:00
Furina-1013-create
2d1e131899 增加视频识别板块
采用抽帧的方式识别视频,可以自己配置详细参数 -详细请看bot_config最底下
更改了template模板
多bb一句:我真的是被这个炸服了,改完这里那里就又炸了,但是总之现在没问题了
2025-11-19 22:35:36 +08:00
minecraft1024a
c62e6642f7 feat: 添加日程管理功能,包括日程模型、配置和初始化逻辑,增强聊天回复中对当前活动的动态反馈。 2025-11-19 22:35:28 +08:00
minecraft1024a
036f47c1e0 feat:新增内容混淆功能:在API配置中添加混淆选项及强度设置;更新LLM请求处理逻辑以支持内容混淆,包含随机乱码注入和过滤规则指令(最主要的是防**google的审查) 2025-11-19 22:35:17 +08:00
SengokuCola
1f91967d2d remove:移除willing系统,移除reply2,移除能量值,移除reply_to改为message 2025-08-11 13:18:17 +08:00
SengokuCola
721546fff9 fix:通过计时定位LLM异常延时,移除memory模型 2025-08-08 22:10:08 +08:00
UnCLAS-Prommer
615965b1bd 文档更新 2025-08-04 22:44:46 +08:00
UnCLAS-Prommer
9c818b78a2 增加一些校验 2025-07-31 22:32:02 +08:00
UnCLAS-Prommer
74fa95c999 template更新 2025-07-30 18:17:55 +08:00
UnCLAS-Prommer
3c40ceda4c 大修LLMReq 2025-07-30 09:45:13 +08:00
墨梓柒
fa58889905 fix: 更新支持的最新版本号至0.2.1 2025-07-29 10:25:39 +08:00
墨梓柒
7313529dcb feat: 添加任务类型和能力字段至模型配置,增强模型初始化逻辑 2025-07-29 09:57:20 +08:00
墨梓柒
16931ef7b4 feat: 支持多个API Key,增强错误处理和负载均衡机制 2025-07-27 13:55:18 +08:00
墨梓柒
e240fb92ca fix: 更新模型配置和环境变量,调整版本号和模型参数 2025-07-27 13:37:21 +08:00
墨梓柒
d27d175f54 重构配置文件,新增API提供商和模型信息类,优化配置加载逻辑 2025-07-23 00:30:05 +08:00