feat:聊天特定的额外prompt支持

This commit is contained in:
SengokuCola
2026-04-01 20:14:31 +08:00
parent 61deee72af
commit 56f7184c4d
4 changed files with 103 additions and 4 deletions

View File

@@ -49,7 +49,10 @@ class MaisakaHeartFlowChatting:
session_name = chat_manager.get_session_name(session_id) or session_id
self.log_prefix = f"[{session_name}]"
self._chat_loop_service = MaisakaChatLoopService()
self._chat_loop_service = MaisakaChatLoopService(
session_id=session_id,
is_group_chat=self.chat_stream.is_group_session,
)
self._chat_history: list[LLMContextMessage] = []
self.history_loop: list[CycleDetail] = []