fix: 修复私聊prompt构建失败
This commit is contained in:
@@ -157,10 +157,13 @@ class PromptBuilder:
|
|||||||
current_mind_info,
|
current_mind_info,
|
||||||
structured_info,
|
structured_info,
|
||||||
chat_stream,
|
chat_stream,
|
||||||
|
sender_name,
|
||||||
)
|
)
|
||||||
return None
|
return None
|
||||||
|
|
||||||
async def _build_prompt_focus(self, reason, current_mind_info, structured_info, chat_stream) -> tuple[str, str]:
|
async def _build_prompt_focus(
|
||||||
|
self, reason, current_mind_info, structured_info, chat_stream, sender_name
|
||||||
|
) -> tuple[str, str]:
|
||||||
individuality = Individuality.get_instance()
|
individuality = Individuality.get_instance()
|
||||||
prompt_personality = individuality.get_prompt(x_person=0, level=2)
|
prompt_personality = individuality.get_prompt(x_person=0, level=2)
|
||||||
# 日程构建
|
# 日程构建
|
||||||
@@ -240,6 +243,7 @@ class PromptBuilder:
|
|||||||
reason=reason,
|
reason=reason,
|
||||||
prompt_ger=prompt_ger,
|
prompt_ger=prompt_ger,
|
||||||
moderation_prompt=await global_prompt_manager.get_prompt_async("moderation_prompt"),
|
moderation_prompt=await global_prompt_manager.get_prompt_async("moderation_prompt"),
|
||||||
|
sender_name=sender_name,
|
||||||
)
|
)
|
||||||
|
|
||||||
return prompt
|
return prompt
|
||||||
|
|||||||
Reference in New Issue
Block a user