Skip to content

Commit

Permalink
修复pydantic升级引发的问题
Browse files Browse the repository at this point in the history
  • Loading branch information
barrierye committed Mar 14, 2024
1 parent b422f53 commit af130a7
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion appbuilder/core/agent.py
Original file line number Diff line number Diff line change
Expand Up @@ -363,7 +363,7 @@ def chainlit_demo(self, host='0.0.0.0', port=8091):
import chainlit.cli
except ImportError:
raise ImportError("chainlit module is not installed. Please install it using 'pip install "
"chainlit~=0.7.700'.")
"chainlit~=1.0.200'.")
import click
from click.testing import CliRunner

Expand Down
10 changes: 5 additions & 5 deletions cookbooks/rag_with_baidusearch.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@
"cite = True # 溯源\n",
"\n",
"# 使用 ERNIE Speed-AppBuilderder 模型\n",
"component = appbuilder.RAGWithBaiduSearch(model=\"ERNIE Speed-AppBuilderder\")\n",
"component = appbuilder.RAGWithBaiduSearch(model=\"ERNIE Speed-AppBuilder\")\n",
"query = appbuilder.Message(\"海淀区的面积是多少\")\n",
"\n",
"answer = component.run(\n",
Expand All @@ -99,7 +99,7 @@
"id": "5fc5bc38-6bc5-4187-a8fd-f802d77d89fa",
"metadata": {},
"source": [
"### (可选) 使用 AgentBase 启动 chainlit 页面调试\n",
"### (可选) 使用 AgentRuntime 启动 chainlit 页面调试\n",
"这部分代码依赖 `appbuilder-sdk[serve]`,如果没有安装,可以执行下面的命令安装:"
]
},
Expand All @@ -110,7 +110,7 @@
"metadata": {},
"outputs": [],
"source": [
"!pip install appbuilder-sdk[serve]"
"!pip install 'appbuilder-sdk[serve]'"
]
},
{
Expand Down Expand Up @@ -140,7 +140,7 @@
"id": "16a8aa38-7a33-4e27-bca4-00900cfe1641",
"metadata": {},
"source": [
"### (可选) 使用 AgentBase 启动 HTTP 服务\n",
"### (可选) 使用 AgentRuntime 启动 HTTP 服务\n",
"这部分代码依赖 `appbuilder-sdk[serve]`,如果没有安装,可以执行下面的命令安装:"
]
},
Expand All @@ -151,7 +151,7 @@
"metadata": {},
"outputs": [],
"source": [
"!pip install appbuilder-sdk[serve]"
"!pip install 'appbuilder-sdk[serve]'"
]
},
{
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
install_requires=requirements,
python_requires='>=3.8',
extras_require={
'serve': ['chainlit~=0.7.700', 'flask~=2.3.2', 'flask-restful==0.3.9']
'serve': ['chainlit~=1.0.200', 'flask~=2.3.2', 'flask-restful==0.3.9']
}
)

0 comments on commit af130a7

Please sign in to comment.