From 33ed7c31da7fc718b306999b93e9b381cea5ce74 Mon Sep 17 00:00:00 2001 From: Sydney Runkle <54324534+sydney-runkle@users.noreply.github.com> Date: Fri, 4 Apr 2025 12:58:18 -0400 Subject: [PATCH] docs: fix perplexity install instructions in `ChatPerplexity` docstring (#30676) * `openai` install no longer needs to be done manually --- libs/partners/perplexity/langchain_perplexity/chat_models.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/libs/partners/perplexity/langchain_perplexity/chat_models.py b/libs/partners/perplexity/langchain_perplexity/chat_models.py index 6e5589ddc27..3387705fe4c 100644 --- a/libs/partners/perplexity/langchain_perplexity/chat_models.py +++ b/libs/partners/perplexity/langchain_perplexity/chat_models.py @@ -75,14 +75,12 @@ class ChatPerplexity(BaseChatModel): """`Perplexity AI` Chat models API. Setup: - To use, you should have the ``openai`` python package installed, and the - environment variable ``PPLX_API_KEY`` set to your API key. + To use, you should have the environment variable ``PPLX_API_KEY`` set to your API key. Any parameters that are valid to be passed to the openai.create call can be passed in, even if not explicitly saved on this class. .. code-block:: bash - pip install openai export PPLX_API_KEY=your_api_key Key init args - completion params: