From d8dd564d7e11679024899ec0ecc57612588892e1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Wang=20Ran=20=28=E6=B1=AA=E7=84=B6=29?= Date: Sat, 21 Dec 2024 12:53:58 +0800 Subject: [PATCH] Update pydantic.py --- libs/core/langchain_core/utils/pydantic.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libs/core/langchain_core/utils/pydantic.py b/libs/core/langchain_core/utils/pydantic.py index ae403574bb761..65f12232f9fc6 100644 --- a/libs/core/langchain_core/utils/pydantic.py +++ b/libs/core/langchain_core/utils/pydantic.py @@ -279,7 +279,7 @@ def _create_subset_model_v2( fn_description: Optional[str] = None, ) -> type[pydantic.BaseModel]: """Create a pydantic model with a subset of the model fields.""" - from pydantic import ConfigDict, create_model + from pydantic import create_model from pydantic.fields import FieldInfo descriptions_ = descriptions or {}