feat:进一步优化缓存

This commit is contained in:
SengokuCola
2026-04-25 00:26:32 +08:00
parent 11f423b851
commit 705452793d
6 changed files with 69 additions and 88 deletions

View File

@@ -233,7 +233,10 @@ class MaisakaHeartFlowChatting:
history_message = SessionBackedMessage.from_session_message(
message,
raw_message=build_prefixed_message_sequence(message.raw_message, planner_prefix),
visible_text=build_session_message_visible_text(message),
visible_text=build_session_message_visible_text(
message,
include_reply_components=source_kind != "guided_reply",
),
source_kind=source_kind,
)
self._chat_history.append(history_message)