增加调试输出

pull/914/head
Bakadax 2025-05-01 17:42:23 +08:00
parent 290f76c152
commit 4de32f2b86
2 changed files with 1 additions and 2 deletions

View File

@ -750,7 +750,7 @@ class HeartFChatting:
except Exception as e:
logger.error(f"Error getting person names: {e}", exc_info=True)
names_data = {} # 出错时置空
print(f"\n\nnames_data:\n{names_data}\n\n")
for user_id in user_ids_in_history:
if user_id in names_data:

View File

@ -440,7 +440,6 @@ class PromptBuilder:
user_ids_in_context = set()
if message_list_before_now:
for msg in message_list_before_now:
print(msg)
sender_id = msg["user_info"].get('user_id')
if sender_id:
user_ids_in_context.add(str(sender_id))