fix:修复willing和表情包不注册

This commit is contained in:
SengokuCola
2025-04-03 21:30:53 +08:00
parent 7734c5d895
commit 06ef607e77
3 changed files with 8 additions and 2 deletions

View File

@@ -191,7 +191,9 @@ class ThinkFlowChat:
# 计算回复意愿
current_willing_old = willing_manager.get_willing(chat_stream=chat)
current_willing_new = (heartflow.get_subheartflow(chat.stream_id).current_state.willing - 5) / 4
current_willing = (current_willing_old + current_willing_new) / 2
# current_willing = (current_willing_old + current_willing_new) / 2
# 有点bug
current_willing = current_willing_old
willing_manager.set_willing(chat.stream_id, current_willing)