langchain/libs/partners/perplexity/tests/unit_tests/test_secrets.py
Sydney Runkle 3814bd1ea7
partners: Add Perplexity Chat Integration (#30618)
Perplexity's importance in the space has been growing, so we think it's
time to add an official integration!

Note: following the release of `langchain-perplexity` to `pypi`, we
should be able to add `perplexity` as an extra in
`libs/langchain/pyproject.toml`, but we're blocked by a circular import
for now.

---------

Co-authored-by: Eugene Yurtsev <eyurtsev@gmail.com>
Co-authored-by: Chester Curme <chester.curme@gmail.com>
2025-04-03 16:09:14 +00:00

9 lines
233 B
Python

from langchain_perplexity import ChatPerplexity
def test_chat_perplexity_secrets() -> None:
model = ChatPerplexity(
model="llama-3.1-sonar-small-128k-online", pplx_api_key="foo"
)
assert "foo" not in str(model)