diff --git a/src/chat/focus_chat/heartFC_chat.py b/src/chat/focus_chat/heartFC_chat.py index dd2d5374a..934991afe 100644 --- a/src/chat/focus_chat/heartFC_chat.py +++ b/src/chat/focus_chat/heartFC_chat.py @@ -462,7 +462,7 @@ class HeartFChatting: 在"兴趣"模式下,判断是否回复并生成内容。 """ - interested_rate = message_data.get("interest_value", 0.0) * self.willing_amplifier + interested_rate = (message_data.get("interest_value") or 0.0) * self.willing_amplifier self.willing_manager.setup(message_data, self.chat_stream)