docs: remove mentions of pydantic_v1 in tutorials (#1709)

This commit is contained in:
Vadym Barda
2024-09-16 10:53:21 -07:00
committed by GitHub
parent d14b3aeef0
commit 301a2c8c82
17 changed files with 1750 additions and 1731 deletions
+3 -2
View File
@@ -157,8 +157,9 @@
"### Retrieval Grader\n",
"\n",
"from langchain_core.prompts import ChatPromptTemplate\n",
"from langchain_core.pydantic_v1 import BaseModel, Field\n",
"from langchain_openai import ChatOpenAI\n",
"# NOTE: you must use langchain-core >= 0.3 with Pydantic v2\n",
"from pydantic import BaseModel, Field\n",
"\n",
"\n",
"# Data model\n",
@@ -693,7 +694,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.11.8"
"version": "3.11.9"
}
},
"nbformat": 4,