From e7d2c050fedd0210cea394fdfc228613898a2baf Mon Sep 17 00:00:00 2001 From: Vishwaraj Anand Date: Tue, 10 Dec 2024 11:54:24 +0530 Subject: [PATCH] chore: pin pydantic version to avoid a reasoning engine failure (#284) --- samples/langchain_on_vertexai/requirements.txt | 3 +++ 1 file changed, 3 insertions(+) diff --git a/samples/langchain_on_vertexai/requirements.txt b/samples/langchain_on_vertexai/requirements.txt index 35e62604..2d7fa7d8 100644 --- a/samples/langchain_on_vertexai/requirements.txt +++ b/samples/langchain_on_vertexai/requirements.txt @@ -3,3 +3,6 @@ langchain-google-alloydb-pg==0.7.0 langchain-google-vertexai==2.0.7 google-cloud-resource-manager==1.13.0 langchain-community==0.3.7 +# Required to fix: "PydanticUndefinedAnnotation: name 'SafetySetting' is not defined" +# Todo: remove after upstream issue is fixed: https://github.com/langchain-ai/langchain/issues/28271 +pydantic==2.9.0