WEB API independent

This commit is contained in:
tuyang.yhj
2023-07-03 16:17:32 +08:00
parent 1605ce53bf
commit a6097c4cb4
9 changed files with 124 additions and 57 deletions

View File

@@ -228,6 +228,8 @@ async def chat_completions(dialogue: ConversationVo = Body()):
chat_param.update({"db_name": dialogue.select_param})
elif ChatScene.ChatDashboard.value == dialogue.chat_mode:
chat_param.update({"db_name": dialogue.select_param})
## DEFAULT
chat_param.update({"report_name": "sales_report"})
elif ChatScene.ChatExecution.value == dialogue.chat_mode:
chat_param.update({"plugin_selector": dialogue.select_param})
elif ChatScene.ChatKnowledge.value == dialogue.chat_mode: