mirror of
https://github.com/hwchase17/langchain
synced 2024-11-04 06:00:26 +00:00
TYPE_CHECKING added
This commit is contained in:
parent
868db99b17
commit
ff1c6de86c
@ -1,5 +1,5 @@
|
||||
import tempfile
|
||||
from typing import Dict, Optional, Union
|
||||
from typing import Dict, Optional, Union, TYPE_CHECKING
|
||||
|
||||
from langchain.callbacks.manager import CallbackManagerForToolRun
|
||||
from langchain.pydantic_v1 import root_validator
|
||||
@ -7,6 +7,7 @@ from langchain.tools.base import BaseTool
|
||||
from langchain.tools.eleven_labs.models import ElevenLabsModel
|
||||
from langchain.utils import get_from_dict_or_env
|
||||
|
||||
if TYPE_CHECKING:
|
||||
try:
|
||||
import elevenlabs
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user