From af130a740ac009fd7d8bbc70c7f199c87060db18 Mon Sep 17 00:00:00 2001 From: barrierye Date: Thu, 14 Mar 2024 14:29:01 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8Dpydantic=E5=8D=87=E7=BA=A7?= =?UTF-8?q?=E5=BC=95=E5=8F=91=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- appbuilder/core/agent.py | 2 +- cookbooks/rag_with_baidusearch.ipynb | 10 +++++----- setup.py | 2 +- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/appbuilder/core/agent.py b/appbuilder/core/agent.py index c6828e61..78e58a88 100644 --- a/appbuilder/core/agent.py +++ b/appbuilder/core/agent.py @@ -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 diff --git a/cookbooks/rag_with_baidusearch.ipynb b/cookbooks/rag_with_baidusearch.ipynb index 8af26086..2870c9e2 100644 --- a/cookbooks/rag_with_baidusearch.ipynb +++ b/cookbooks/rag_with_baidusearch.ipynb @@ -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", @@ -99,7 +99,7 @@ "id": "5fc5bc38-6bc5-4187-a8fd-f802d77d89fa", "metadata": {}, "source": [ - "### (可选) 使用 AgentBase 启动 chainlit 页面调试\n", + "### (可选) 使用 AgentRuntime 启动 chainlit 页面调试\n", "这部分代码依赖 `appbuilder-sdk[serve]`,如果没有安装,可以执行下面的命令安装:" ] }, @@ -110,7 +110,7 @@ "metadata": {}, "outputs": [], "source": [ - "!pip install appbuilder-sdk[serve]" + "!pip install 'appbuilder-sdk[serve]'" ] }, { @@ -140,7 +140,7 @@ "id": "16a8aa38-7a33-4e27-bca4-00900cfe1641", "metadata": {}, "source": [ - "### (可选) 使用 AgentBase 启动 HTTP 服务\n", + "### (可选) 使用 AgentRuntime 启动 HTTP 服务\n", "这部分代码依赖 `appbuilder-sdk[serve]`,如果没有安装,可以执行下面的命令安装:" ] }, @@ -151,7 +151,7 @@ "metadata": {}, "outputs": [], "source": [ - "!pip install appbuilder-sdk[serve]" + "!pip install 'appbuilder-sdk[serve]'" ] }, { diff --git a/setup.py b/setup.py index c4c6e7c2..57f1895c 100755 --- a/setup.py +++ b/setup.py @@ -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'] } )