mirror of
https://github.com/csunny/DB-GPT.git
synced 2025-08-22 10:08:34 +00:00
feat(ChatExcel): ChatExcel Use AntV Chart
1.Native Support AntvChart
This commit is contained in:
parent
9b4b935f31
commit
bd7b6fc004
@ -174,8 +174,8 @@ class BaseChat(ABC):
|
||||
def stream_plugin_call(self, text):
|
||||
return text
|
||||
|
||||
def knowledge_reference_call(self, text):
|
||||
return text
|
||||
# def knowledge_reference_call(self, text):
|
||||
# return text
|
||||
|
||||
async def check_iterator_end(iterator):
|
||||
try:
|
||||
@ -218,7 +218,7 @@ class BaseChat(ABC):
|
||||
view_msg = view_msg.replace("\n", "\\n")
|
||||
yield view_msg
|
||||
self.current_message.add_ai_message(msg)
|
||||
view_msg = self.knowledge_reference_call(msg)
|
||||
# view_msg = self.knowledge_reference_call(msg)
|
||||
self.current_message.add_view_message(view_msg)
|
||||
span.end()
|
||||
except Exception as e:
|
||||
|
@ -14,6 +14,7 @@ from pilot.scene.chat_data.chat_excel.excel_learning.chat import ExcelLearning
|
||||
from pilot.common.path_utils import has_path
|
||||
from pilot.configs.model_config import LLM_MODEL_CONFIG, KNOWLEDGE_UPLOAD_ROOT_PATH
|
||||
from pilot.base_modules.agent.common.schema import Status
|
||||
from pilot.utils.tracer import root_tracer, trace
|
||||
|
||||
CFG = Config()
|
||||
|
||||
|
@ -89,7 +89,7 @@ class ChatKnowledge(BaseChat):
|
||||
last_output = last_output + reference
|
||||
yield last_output
|
||||
|
||||
def knowledge_reference_call(self, text):
|
||||
def stream_plugin_call(self, text):
|
||||
"""return reference"""
|
||||
return text + f"\n\n{self.parse_source_view(self.sources)}"
|
||||
|
||||
|
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue
Block a user