Merge pull request #274 from Pocketfans/willing_cycles

让回复意愿更加拟人,增加高低回复意愿周期,且增加了一个简单的追问回复功能
This commit is contained in:
晴猫
2025-03-13 16:02:11 +09:00
committed by GitHub
2 changed files with 206 additions and 52 deletions

View File

@@ -228,6 +228,7 @@ class ChatBot:
config=global_config,
is_emoji=message.is_emoji,
interested_rate=interested_rate,
sender_id=str(message.message_info.user_info.user_id),
)
current_willing = willing_manager.get_willing(chat_stream=chat)
@@ -258,6 +259,9 @@ class ChatBot:
willing_manager.change_reply_willing_sent(chat)
response, raw_content = await self.gpt.generate_response(message)
else:
# 决定不回复时,也更新回复意愿
willing_manager.change_reply_willing_not_sent(chat)
# print(f"response: {response}")
if response: