fix:修复小bug
This commit is contained in:
@@ -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,
|
||||
|
||||
@@ -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 = "没有主题的闲聊" # 默认值
|
||||
|
||||
Reference in New Issue
Block a user