Skip to content

Commit

Permalink
Lazy internal import (#1198)
Browse files Browse the repository at this point in the history
  • Loading branch information
hinthornw authored Nov 13, 2024
1 parent 62e66ca commit 33a621c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion python/langsmith/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,6 @@
from urllib3.util import Retry # type: ignore[import-untyped]

from langsmith import schemas as ls_schemas
from langsmith._internal import _patch as patch_urllib3

_LOGGER = logging.getLogger(__name__)

Expand Down Expand Up @@ -494,6 +493,8 @@ def with_cache(
'pip install -U "langsmith[vcr]"'
)
# Fix concurrency issue in vcrpy's patching
from langsmith._internal import _patch as patch_urllib3

patch_urllib3.patch_urllib3()

def _filter_request_headers(request: Any) -> Any:
Expand Down

0 comments on commit 33a621c

Please sign in to comment.