feat:发布前更改

This commit is contained in:
SengokuCola
2025-09-22 00:49:21 +08:00
parent 64979332af
commit 6dfc4552a6
6 changed files with 11 additions and 43 deletions

View File

@@ -206,9 +206,10 @@ class HeartFChatting:
elif random.random() < global_config.chat.talk_value * frequency_control_manager.get_or_create_frequency_control(self.stream_id).get_talk_frequency_adjust():
await self._observe(recent_messages_list=recent_messages_list)
else:
# 没有提到继续保持沉默等待5秒防止频繁触发
await asyncio.sleep(5)
return True
else:
# Normal模式消息数量不足等待
await asyncio.sleep(0.2)
return True
return True

View File

@@ -961,7 +961,7 @@ class DefaultReplyer:
async def llm_generate_content(self, prompt: str):
with Timer("LLM生成", {}): # 内部计时器,可选保留
# 直接使用已初始化的模型实例
logger.info(f"\n{prompt}\n")
# logger.info(f"\n{prompt}\n")
if global_config.debug.show_prompt:
logger.info(f"\n{prompt}\n")