fix:修复小bug

This commit is contained in:
SengokuCola
2025-05-28 23:49:13 +08:00
parent 168fb0da40
commit bad915f6cb
3 changed files with 10 additions and 2 deletions

View File

@@ -211,7 +211,8 @@ class ExpressionLearner:
chat_id: str = random_msg[0]["chat_id"]
# random_msg_str: str = await build_readable_messages(random_msg, timestamp_mode="normal")
random_msg_str: str = await build_anonymous_messages(random_msg)
# print(f"random_msg_str:{random_msg_str}")
prompt: str = await global_prompt_manager.format_prompt(
prompt,
chat_str=random_msg_str,

View File

@@ -96,6 +96,7 @@ class ChattingInfoProcessor(BaseProcessor):
async def chat_compress(self, obs: ChattingObservation):
if obs.compressor_prompt:
summary = ""
try:
summary_result, _, _ = await self.model_summary.generate_response(obs.compressor_prompt)
summary = "没有主题的闲聊" # 默认值