Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

修复pydantic升级导致chainlit在python3.9下运行失败的问题 #185

Merged
merged 1 commit into from
Mar 14, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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']
}
)

Loading