Skip to content

Commit

Permalink
修改服务名称为AirdaServer, 取消datasource的enable和disable选项,添加每次进入问答datasource的指定
Browse files Browse the repository at this point in the history
  • Loading branch information
iokk3732 committed Apr 30, 2024
1 parent a1dcf6b commit 7ab583d
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions airda/cli/startup.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
from airda.agent.storage.entity.datasource import Datasource, Kind
from airda.agent.storage.repositories.datasource_repository import DatasourceRepository
from airda.connector.mysql import MysqlConnector
from airda.server.agent_server import DataAgentServer
from airda.server.agent_server.airda_server import AirdaServer

style = Style.from_dict(
{
Expand Down Expand Up @@ -108,8 +108,8 @@ async def execute():
help="服务端口号",
)
def server(port: int):
data_agent_server = DataAgentServer(port=port)
data_agent_server.run_server()
airda_server = AirdaServer(port=port)
airda_server.run_server()
pass


Expand Down
1 change: 1 addition & 0 deletions airda/connector/mysql.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,3 +68,4 @@ def query_schema(self):
table_comment=table[1],
)
self.context.sync_instruction(instruction)
cursor.close()
1 change: 0 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@ torch = "2.0.1"
pymongo = "^4.6.2"
prompt-toolkit = "^3.0.43"
pyyaml = "^6.0.1"
mysql-connector-python = "^8.3.0"
fastapi = "0.99.0"

[tool.poetry.scripts]
Expand Down

0 comments on commit 7ab583d

Please sign in to comment.