mirror of
https://github.com/hwchase17/langchain.git
synced 2025-06-01 20:49:17 +00:00
docs: fix perplexity install instructions in ChatPerplexity
docstring (#30676)
* `openai` install no longer needs to be done manually
This commit is contained in:
parent
f9bb5ec5d0
commit
33ed7c31da
@ -75,14 +75,12 @@ class ChatPerplexity(BaseChatModel):
|
|||||||
"""`Perplexity AI` Chat models API.
|
"""`Perplexity AI` Chat models API.
|
||||||
|
|
||||||
Setup:
|
Setup:
|
||||||
To use, you should have the ``openai`` python package installed, and the
|
To use, you should have the environment variable ``PPLX_API_KEY`` set to your API key.
|
||||||
environment variable ``PPLX_API_KEY`` set to your API key.
|
|
||||||
Any parameters that are valid to be passed to the openai.create call
|
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.
|
can be passed in, even if not explicitly saved on this class.
|
||||||
|
|
||||||
.. code-block:: bash
|
.. code-block:: bash
|
||||||
|
|
||||||
pip install openai
|
|
||||||
export PPLX_API_KEY=your_api_key
|
export PPLX_API_KEY=your_api_key
|
||||||
|
|
||||||
Key init args - completion params:
|
Key init args - completion params:
|
||||||
|
Loading…
Reference in New Issue
Block a user