fix;修复提取消息和运行bug

This commit is contained in:
SengokuCola
2025-05-17 01:03:20 +08:00
parent 5e37d48735
commit d26d69de60
7 changed files with 472 additions and 5 deletions

View File

@@ -63,13 +63,16 @@ class ChattingInfoProcessor(BaseProcessor):
# 设置说话消息
if hasattr(obs, "talking_message_str"):
print(f"设置说话消息obs.talking_message_str: {obs.talking_message_str}")
obs_info.set_talking_message(obs.talking_message_str)
# 设置截断后的说话消息
if hasattr(obs, "talking_message_str_truncate"):
print(f"设置截断后的说话消息obs.talking_message_str_truncate: {obs.talking_message_str_truncate}")
obs_info.set_talking_message_str_truncate(obs.talking_message_str_truncate)
if hasattr(obs, "mid_memory_info"):
print(f"设置之前聊天信息obs.mid_memory_info: {obs.mid_memory_info}")
obs_info.set_previous_chat_info(obs.mid_memory_info)
# 设置聊天类型