From 5266c30a1010ce7fa8a528039233de432286a133 Mon Sep 17 00:00:00 2001 From: aries_ckt <916701291@qq.com> Date: Thu, 19 Oct 2023 09:41:26 +0800 Subject: [PATCH] style:fmt --- pilot/scene/base_chat.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/pilot/scene/base_chat.py b/pilot/scene/base_chat.py index 26c1f0aa6..243760090 100644 --- a/pilot/scene/base_chat.py +++ b/pilot/scene/base_chat.py @@ -359,7 +359,10 @@ class BaseChat(ABC): ) if len(self.history_message) > self.chat_retention_rounds: for first_message in self.history_message[0]["messages"]: - if not first_message["type"] in [ModelMessageRoleType.VIEW, ModelMessageRoleType.SYSTEM]: + if not first_message["type"] in [ + ModelMessageRoleType.VIEW, + ModelMessageRoleType.SYSTEM, + ]: message_type = first_message["type"] message_content = first_message["data"]["content"] history_text += (