chore: v3.4.17

This commit is contained in:
Soulter
2025-02-02 20:39:26 +08:00
parent 59b7d8b8cb
commit 9ded102a0a
4 changed files with 16 additions and 5 deletions

View File

@@ -2,7 +2,7 @@
如需修改配置,请在 `data/cmd_config.json` 中修改或者在管理面板中可视化修改。
"""
VERSION = "3.4.16"
VERSION = "3.4.17"
DB_PATH = "data/data_v3.db"
# 默认配置

11
changelogs/v3.4.17.md Normal file
View File

@@ -0,0 +1,11 @@
# What's Changed
- [beta] 支持群聊内基于概率的主动回复
- openai tts 更换模型 #300
- 增加模型响应后的插件钩子
- 修复 相同type的provider共享了记忆
- 优化 人格情景在发现格式不对时仍然加载而不是跳过 #282
- 修复 Gemini函数调用时parameters为空对象导致的错误 by @Camreishi
- 修复 弹出记录报错的问题 #272
- 优化 移除默认人格
- 优化 未启用模型提供商时的异常处理

View File

@@ -62,7 +62,9 @@ class LongTermMemory:
match self.ar_method:
case "possibility_reply":
return random.random() < self.ar_possibility
trig = random.random() < self.ar_possibility
logger.debug("主动回复触发。")
return trig
return False

View File

@@ -455,9 +455,7 @@ UID: {user_id} 此 ID 可用于设置管理员。/op <UID> 授权管理员, /deo
'''群聊记忆增强'''
if self.ltm:
need_active = await self.ltm.need_active_reply(event)
print(need_active)
group_icl_enable = self.context.get_config()['provider_ltm_settings']['group_icl_enable']
if group_icl_enable:
'''记录对话'''