mirror of
https://github.com/csunny/DB-GPT.git
synced 2025-11-05 01:46:30 +00:00
feat(ChatExcel): ChatExcel Use AntV Chart
1.Native Support AntvChart
This commit is contained in:
@@ -61,7 +61,7 @@ PROMPT_SCENE_DEFINE = (
|
||||
|
||||
PROMPT_SEP = SeparatorStyle.SINGLE.value
|
||||
|
||||
PROMPT_NEED_NEED_STREAM_OUT = False
|
||||
PROMPT_NEED_STREAM_OUT = False
|
||||
|
||||
# Temperature is a configuration hyperparameter that controls the randomness of language model output.
|
||||
# A high temperature produces more unpredictable and creative results, while a low temperature produces more common and conservative output.
|
||||
@@ -74,9 +74,9 @@ prompt = PromptTemplate(
|
||||
response_format=json.dumps(RESPONSE_FORMAT_SIMPLE, ensure_ascii=False, indent=4),
|
||||
template_define=PROMPT_SCENE_DEFINE,
|
||||
template=_DEFAULT_TEMPLATE,
|
||||
stream_out=PROMPT_NEED_NEED_STREAM_OUT,
|
||||
stream_out=PROMPT_NEED_STREAM_OUT,
|
||||
output_parser=LearningExcelOutputParser(
|
||||
sep=PROMPT_SEP, is_stream_out=PROMPT_NEED_NEED_STREAM_OUT
|
||||
sep=PROMPT_SEP, is_stream_out=PROMPT_NEED_STREAM_OUT
|
||||
),
|
||||
# example_selector=sql_data_example,
|
||||
temperature=PROMPT_TEMPERATURE,
|
||||
|
||||
Reference in New Issue
Block a user