From eb9068730bb806a36d9aad3b8f9830b0f05e70e4 Mon Sep 17 00:00:00 2001 From: aries_ckt <916701291@qq.com> Date: Thu, 14 Sep 2023 19:34:56 +0800 Subject: [PATCH] fix(dashboard):chat_history add model_name --- pilot/scene/chat_dashboard/chat.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pilot/scene/chat_dashboard/chat.py b/pilot/scene/chat_dashboard/chat.py index f6213c292..ba5bdd8ce 100644 --- a/pilot/scene/chat_dashboard/chat.py +++ b/pilot/scene/chat_dashboard/chat.py @@ -29,7 +29,7 @@ class ChatDashboard(BaseChat): if not self.db_name: raise ValueError(f"{ChatScene.ChatDashboard.value} mode should choose db!") self.db_name = self.db_name - self.report_name = chat_param["report_name"] or "report" + self.report_name = chat_param.get("report_name", "report") self.database = CFG.LOCAL_DB_MANAGE.get_connect(self.db_name)