Skip to content

Commit

Permalink
Fix import deprecations
Browse files Browse the repository at this point in the history
  • Loading branch information
jtpio committed Jun 9, 2024
1 parent f138b0d commit d23d39a
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions packages/jupyter-ai-magics/jupyter_ai_magics/providers.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,6 @@

from jsonpath_ng import parse
from langchain.chat_models.base import BaseChatModel
from langchain.llms.sagemaker_endpoint import LLMContentHandler
from langchain.llms.utils import enforce_stop_tokens
from langchain.prompts import (
ChatPromptTemplate,
HumanMessagePromptTemplate,
Expand All @@ -43,6 +41,7 @@
SagemakerEndpoint,
Together,
)
from langchain_community.llms.sagemaker_endpoint import LLMContentHandler

# this is necessary because `langchain.pydantic_v1.main` does not include
# `ModelMetaclass`, as it is not listed in `__all__` by the `pydantic.main`
Expand Down

0 comments on commit d23d39a

Please sign in to comment.