From 6c670c92eb7ceb6bfe54e3b97a48c5d1542f986b Mon Sep 17 00:00:00 2001 From: minmin-intel Date: Sun, 27 Oct 2024 02:12:00 -0700 Subject: [PATCH] fix pydantic version (#826) Signed-off-by: minmin-intel --- comps/agent/langchain/src/tools.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/comps/agent/langchain/src/tools.py b/comps/agent/langchain/src/tools.py index 5ac0906db..ff3918cc9 100644 --- a/comps/agent/langchain/src/tools.py +++ b/comps/agent/langchain/src/tools.py @@ -8,7 +8,7 @@ import yaml from langchain.tools import BaseTool, StructuredTool from langchain_community.agent_toolkits.load_tools import load_tools -from pydantic.v1 import BaseModel, Field, create_model +from pydantic import BaseModel, Field, create_model def generate_request_function(url):