diff --git a/docs/docs/integrations/llms/perplexity.ipynb b/docs/docs/integrations/llms/perplexity.ipynb index 86a8815f46c80..2286c21c8d98e 100644 --- a/docs/docs/integrations/llms/perplexity.ipynb +++ b/docs/docs/integrations/llms/perplexity.ipynb @@ -45,7 +45,7 @@ "source": [ "from langchain.chains import LLMChain\n", "from langchain.prompts import PromptTemplate\n", - "from langchain_community.llms.perplexity import Perplexity" + "from langchain_community.llms.perplexity import PerplexityLLM" ] }, { diff --git a/libs/community/langchain_community/llms/perplexity.py b/libs/community/langchain_community/llms/perplexity.py index 13584be6d77cb..be06c9fdb6914 100644 --- a/libs/community/langchain_community/llms/perplexity.py +++ b/libs/community/langchain_community/llms/perplexity.py @@ -58,7 +58,7 @@ class PerplexityLLM(BaseChatModel): Example: .. code-block:: python - from langchain_community.llms import Perplexity + from langchain_community.llms import PerplexityLLM llm = PerplexityLLM(model="pplx-70b-online", temperature=0.7) """ diff --git a/libs/community/tests/integration_tests/llms/test_perplexity.py b/libs/community/tests/integration_tests/llms/test_perplexity.py index 2b3c8750afad1..d41553e7593d6 100644 --- a/libs/community/tests/integration_tests/llms/test_perplexity.py +++ b/libs/community/tests/integration_tests/llms/test_perplexity.py @@ -4,7 +4,7 @@ from langchain_core.callbacks import CallbackManager -from langchain_community.llms.perplexity import Perplexity +from langchain_community.llms.perplexity import PerplexityLLM from tests.unit_tests.callbacks.fake_callback_handler import FakeCallbackHandler