From bb30035a2a69cf1d6133da3a60db1b0a9d023b9f Mon Sep 17 00:00:00 2001 From: yhjun1026 <460342015@qq.com> Date: Mon, 24 Jul 2023 15:42:41 +0800 Subject: [PATCH] web bug fix --- pilot/openapi/api_v1/api_v1.py | 2 +- .../template/{sales_report => report}/dashboard.json | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) rename pilot/scene/chat_dashboard/template/{sales_report => report}/dashboard.json (75%) diff --git a/pilot/openapi/api_v1/api_v1.py b/pilot/openapi/api_v1/api_v1.py index ddded45ef..958f14f24 100644 --- a/pilot/openapi/api_v1/api_v1.py +++ b/pilot/openapi/api_v1/api_v1.py @@ -236,7 +236,7 @@ async def chat_completions(dialogue: ConversationVo = Body()): elif ChatScene.ChatDashboard.value() == dialogue.chat_mode: chat_param.update({"db_name": dialogue.select_param}) ## DEFAULT - chat_param.update({"report_name": "sales_report"}) + chat_param.update({"report_name": "report"}) elif ChatScene.ChatExecution.value() == dialogue.chat_mode: chat_param.update({"plugin_selector": dialogue.select_param}) elif ChatScene.ChatKnowledge.value() == dialogue.chat_mode: diff --git a/pilot/scene/chat_dashboard/template/sales_report/dashboard.json b/pilot/scene/chat_dashboard/template/report/dashboard.json similarity index 75% rename from pilot/scene/chat_dashboard/template/sales_report/dashboard.json rename to pilot/scene/chat_dashboard/template/report/dashboard.json index 4054688c8..c10f208a6 100644 --- a/pilot/scene/chat_dashboard/template/sales_report/dashboard.json +++ b/pilot/scene/chat_dashboard/template/report/dashboard.json @@ -1,6 +1,6 @@ { - "title": "Sales Report", - "name": "sale_report", + "title": "Report", + "name": "report", "introduce": "", "layout": "TODO", "supported_chart_type":[ "Table", "LineChart", "BarChart", "IndicatorValue"],