From c0421d091f75b4a84685ada4bd1378fb3ba30fc8 Mon Sep 17 00:00:00 2001 From: yhjun1026 <460342015@qq.com> Date: Thu, 26 Oct 2023 11:06:32 +0800 Subject: [PATCH] bugfix(ChatExcel): ChatExcel Language confusion bug 1.Fix ChatExcel Language confusion bug --- .../chat_data/chat_excel/excel_learning/prompt.py | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/pilot/scene/chat_data/chat_excel/excel_learning/prompt.py b/pilot/scene/chat_data/chat_excel/excel_learning/prompt.py index fbc24b28e..aefd96a71 100644 --- a/pilot/scene/chat_data/chat_excel/excel_learning/prompt.py +++ b/pilot/scene/chat_data/chat_excel/excel_learning/prompt.py @@ -40,11 +40,20 @@ _RESPONSE_FORMAT_SIMPLE_ZH = { } _RESPONSE_FORMAT_SIMPLE_EN = { "DataAnalysis": "Data content analysis summary", - "ColumnAnalysis": [{"column name1": "Introduction to Column 1 and explanation of professional terms (please try to be as simple and clear as possible)"}], - "AnalysisProgram": ["1. Analysis plan 1, chart display type 1", "2. Analysis plan 2, chart display type 2"], + "ColumnAnalysis": [ + { + "column name1": "Introduction to Column 1 and explanation of professional terms (please try to be as simple and clear as possible)" + } + ], + "AnalysisProgram": [ + "1. Analysis plan 1, chart display type 1", + "2. Analysis plan 2, chart display type 2", + ], } -RESPONSE_FORMAT_SIMPLE =(_RESPONSE_FORMAT_SIMPLE_EN if CFG.LANGUAGE == "en" else _RESPONSE_FORMAT_SIMPLE_ZH) +RESPONSE_FORMAT_SIMPLE = ( + _RESPONSE_FORMAT_SIMPLE_EN if CFG.LANGUAGE == "en" else _RESPONSE_FORMAT_SIMPLE_ZH +) _DEFAULT_TEMPLATE = (