mirror of
https://github.com/csunny/DB-GPT.git
synced 2025-09-12 12:37:14 +00:00
fix: typo error fix (#1228)
This commit is contained in:
@@ -65,7 +65,7 @@ class ChartAction(Action[SqlInput]):
|
||||
"There is no implementation class bound to database resource execution!"
|
||||
)
|
||||
data_df = await resource_db_client.a_query_to_df(resource.value, param.sql)
|
||||
view = await self.render_protocal.disply(
|
||||
view = await self.render_protocal.display(
|
||||
chart=json.loads(param.json()), data_df=data_df
|
||||
)
|
||||
return ActionOutput(
|
||||
|
@@ -65,7 +65,7 @@ class CodeAction(Action[None]):
|
||||
param["language"] = code_blocks[0][0]
|
||||
param["code"] = code_blocks
|
||||
param["log"] = logs
|
||||
view = await self.render_protocal.disply(content=param)
|
||||
view = await self.render_protocal.display(content=param)
|
||||
return ActionOutput(is_exe_success=exit_success, content=content, view=view)
|
||||
except Exception as e:
|
||||
logger.exception("Code Action Run Failed!")
|
||||
|
@@ -82,7 +82,7 @@ class DashboardAction(Action[List[ChartItem]]):
|
||||
logger.warn(f"Sql excute Failed!{str(e)}")
|
||||
chart_dict["err_msg"] = str(e)
|
||||
chart_params.append(chart_dict)
|
||||
view = await self.render_protocal.disply(charts=chart_params)
|
||||
view = await self.render_protocal.display(charts=chart_params)
|
||||
return ActionOutput(
|
||||
is_exe_success=True,
|
||||
content=json.dumps([chart_item.dict() for chart_item in chart_items]),
|
||||
|
@@ -118,7 +118,7 @@ class IndicatorAction(Action[IndicatorInput]):
|
||||
"err_msg": err_msg,
|
||||
}
|
||||
|
||||
view = await self.render_protocal.disply(content=plugin_param)
|
||||
view = await self.render_protocal.display(content=plugin_param)
|
||||
|
||||
return ActionOutput(
|
||||
is_exe_success=response_success, content=response.text, view=view
|
||||
|
@@ -106,7 +106,7 @@ class PluginAction(Action[PluginInput]):
|
||||
"err_msg": err_msg,
|
||||
}
|
||||
|
||||
view = await self.render_protocal.disply(content=plugin_param)
|
||||
view = await self.render_protocal.display(content=plugin_param)
|
||||
|
||||
return ActionOutput(
|
||||
is_exe_success=response_success, content=tool_result, view=view
|
||||
|
@@ -2,7 +2,7 @@ import json
|
||||
from typing import Callable, Dict, List, Literal, Optional, Union
|
||||
|
||||
from dbgpt.agent.actions.dashboard_action import DashboardAction
|
||||
from dbgpt.agent.plugin.commands.command_mange import ApiCall
|
||||
from dbgpt.agent.plugin.commands.command_manage import ApiCall
|
||||
from dbgpt.util.json_utils import find_json_objects
|
||||
|
||||
from ...memory.gpts_memory import GptsMemory
|
||||
|
@@ -15,7 +15,7 @@ from bs4 import BeautifulSoup
|
||||
from dbgpt.agent.agents.agent import Agent, AgentContext
|
||||
from dbgpt.agent.agents.base_agent import ConversableAgent
|
||||
from dbgpt.agent.memory.gpts_memory import GptsMemory
|
||||
from dbgpt.agent.plugin.commands.command_mange import ApiCall
|
||||
from dbgpt.agent.plugin.commands.command_manage import ApiCall
|
||||
from dbgpt.configs.model_config import PILOT_PATH
|
||||
from dbgpt.core.interface.message import ModelMessageRoleType
|
||||
|
||||
|
@@ -102,11 +102,11 @@ class GptsMemory:
|
||||
"markdown": view_info,
|
||||
}
|
||||
)
|
||||
return await vis_client.get(VisAgentMessages.vis_tag()).disply(
|
||||
return await vis_client.get(VisAgentMessages.vis_tag()).display(
|
||||
content=messages_view
|
||||
)
|
||||
|
||||
async def _messages_to_plan_vis(self, messages: List[Dict]):
|
||||
if messages is None or len(messages) <= 0:
|
||||
return ""
|
||||
return await vis_client.get(VisAgentPlans.vis_tag()).disply(content=messages)
|
||||
return await vis_client.get(VisAgentPlans.vis_tag()).display(content=messages)
|
||||
|
@@ -5,7 +5,7 @@ import requests
|
||||
|
||||
from dbgpt._private.config import Config
|
||||
|
||||
from ..command_mange import command
|
||||
from ..command_manage import command
|
||||
|
||||
CFG = Config()
|
||||
|
||||
|
@@ -13,7 +13,7 @@ from pandas import DataFrame
|
||||
from dbgpt.configs.model_config import PILOT_PATH
|
||||
from dbgpt.util.string_utils import is_scientific_notation
|
||||
|
||||
from ...command_mange import command
|
||||
from ...command_manage import command
|
||||
|
||||
matplotlib.use("Agg")
|
||||
|
@@ -2,7 +2,7 @@ import logging
|
||||
|
||||
from pandas import DataFrame
|
||||
|
||||
from ...command_mange import command
|
||||
from ...command_manage import command
|
||||
|
||||
logger = logging.getLogger(__name__)
|
||||
|
@@ -2,7 +2,7 @@ import logging
|
||||
|
||||
from pandas import DataFrame
|
||||
|
||||
from ...command_mange import command
|
||||
from ...command_manage import command
|
||||
|
||||
logger = logging.getLogger(__name__)
|
||||
|
@@ -9,7 +9,7 @@ from PIL import Image
|
||||
|
||||
from dbgpt._private.config import Config
|
||||
|
||||
from ..command_mange import command
|
||||
from ..command_manage import command
|
||||
|
||||
logger = logging.getLogger(__name__)
|
||||
CFG = Config()
|
||||
|
@@ -2,7 +2,7 @@ import logging
|
||||
import os
|
||||
from typing import Optional
|
||||
|
||||
from dbgpt.agent.plugin.commands.command_mange import execute_command
|
||||
from dbgpt.agent.plugin.commands.command_manage import execute_command
|
||||
from dbgpt.agent.plugin.generator import PluginPromptGenerator
|
||||
from dbgpt.agent.plugin.plugins_util import scan_plugin_file, scan_plugins
|
||||
from dbgpt.agent.resource.resource_api import AgentResource
|
||||
|
Reference in New Issue
Block a user