Skip to content

Commit

Permalink
fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
baskaryan committed Jan 3, 2024
1 parent 61e3734 commit fee13a0
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
7 changes: 5 additions & 2 deletions libs/langchain/langchain/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,9 @@ def __getattr__(name: str) -> Any:
elif name == "HuggingFaceTextGenInference":
from langchain_community.llms import HuggingFaceTextGenInference

_warn_on_import(name, replacement="langchain_community.llms.HuggingFaceTextGenInference")
_warn_on_import(
name, replacement="langchain_community.llms.HuggingFaceTextGenInference"
)

return HuggingFaceTextGenInference
elif name == "LlamaCpp":
Expand Down Expand Up @@ -228,7 +230,8 @@ def __getattr__(name: str) -> Any:
from langchain_community.llms.huggingface_pipeline import HuggingFacePipeline

_warn_on_import(
name, replacement="langchain_community.llms.huggingface_pipeline.HuggingFacePipeline"
name,
replacement="langchain_community.llms.huggingface_pipeline.HuggingFacePipeline",
)

return HuggingFacePipeline
Expand Down
2 changes: 1 addition & 1 deletion libs/langchain/langchain/chat_models/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ def __getattr__(name: str) -> None:
"Importing chat models from langchain is no longer supported. "
"Please import from langchain-community like so:\n\n"
f"`from langchain_community.chat_models import {name}`.",
category=LangChainDeprecationWarning
category=LangChainDeprecationWarning,
)

return getattr(chat_models, name)
Expand Down

0 comments on commit fee13a0

Please sign in to comment.