feat(ChatExcel): ChatExcel example file

add example excel file use to test ChatExcel
This commit is contained in:
yhjun1026 2023-10-20 09:18:20 +08:00
parent b42a77465b
commit 5b1dcb37fa
2 changed files with 0 additions and 2 deletions

View File

@ -53,7 +53,6 @@ class ChatAgent(BaseChat):
def stream_plugin_call(self, text):
text = text.replace("\n", " ")
print(f"stream_plugin_call:{text}")
return self.api_call.run(text)
def __list_to_prompt_str(self, list: List) -> str:

View File

@ -78,5 +78,4 @@ class ChatExcel(BaseChat):
def stream_plugin_call(self, text):
text = text.replace("\n", " ")
print(f"stream_plugin_call:{text}")
return self.api_call.run_display_sql(text, self.excel_reader.get_df_by_sql_ex)