bugfix(ChatExcel): ChatExcel Language confusion bug (#732)

1.Fix ChatExcel Language confusion bug
#719
This commit is contained in:
明天 2023-10-26 11:09:25 +08:00 committed by GitHub
commit 2ba610c1dd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -33,11 +33,27 @@ _DEFAULT_TEMPLATE_ZH = """
{response}
"""
RESPONSE_FORMAT_SIMPLE = {
_RESPONSE_FORMAT_SIMPLE_ZH = {
"DataAnalysis": "数据内容分析总结",
"ColumnAnalysis": [{"column name1": "字段1介绍专业术语解释(请尽量简单明了)"}],
"AnalysisProgram": ["1.分析方案1图表展示方式1", "2.分析方案2图表展示方式2"],
}
_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",
],
}
RESPONSE_FORMAT_SIMPLE = (
_RESPONSE_FORMAT_SIMPLE_EN if CFG.LANGUAGE == "en" else _RESPONSE_FORMAT_SIMPLE_ZH
)
_DEFAULT_TEMPLATE = (