mirror of
https://github.com/livekit/agents.git
synced 2026-12-06 03:58:44 +00:00
14 lines
420 B
Python
14 lines
420 B
Python
from __future__ import annotations
|
|
|
|
import pytest
|
|
|
|
from livekit.plugins.perplexity import __version__, responses
|
|
|
|
pytestmark = pytest.mark.plugin("perplexity")
|
|
|
|
|
|
def test_attribution_header_attached(monkeypatch: pytest.MonkeyPatch) -> None:
|
|
monkeypatch.setenv("PERPLEXITY_API_KEY", "test-key")
|
|
llm = responses.LLM()
|
|
assert llm._client.default_headers["X-Pplx-Integration"] == f"livekit-agents/{__version__}"
|