修复在群聊中提示词不会包含和当前消息发送人的relationship的问题

This commit is contained in:
丁睿毅
2025-06-03 01:31:08 +08:00
parent 17717e547e
commit 282988b0f9

View File

@@ -104,10 +104,9 @@ class PromptBuilder:
(chat_stream.user_info.platform, chat_stream.user_info.user_id) if chat_stream.user_info else None, (chat_stream.user_info.platform, chat_stream.user_info.user_id) if chat_stream.user_info else None,
limit=global_config.normal_chat.max_context_size, limit=global_config.normal_chat.max_context_size,
) )
elif chat_stream.user_info: who_chat_in_group.append(
who_chat_in_group.append( (chat_stream.user_info.platform, chat_stream.user_info.user_id, chat_stream.user_info.user_nickname)
(chat_stream.user_info.platform, chat_stream.user_info.user_id, chat_stream.user_info.user_nickname) )
)
relation_prompt = "" relation_prompt = ""
for person in who_chat_in_group: for person in who_chat_in_group: