Update 2 more pydantic imports (#9203)

Update two more pydantic imports to use v1 explicitly
This commit is contained in:
Eugene Yurtsev 2023-08-14 10:11:30 -04:00 committed by GitHub
parent c172f972ea
commit 72f9150a50
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -1,7 +1,7 @@
# flake8: noqa
from typing import Any, Dict, Optional, List
from pydantic import root_validator
from pydantic_v1 import root_validator
from langchain.callbacks.manager import CallbackManagerForLLMRun
from langchain.llms.base import LLM

View File

@ -2,7 +2,7 @@
from typing import Any, Dict, List, Optional
import requests
from pydantic import Extra, root_validator
from pydantic_v1 import Extra, root_validator
from langchain.tools.base import BaseModel
from langchain.utils import get_from_dict_or_env