From 430ab7a33c10604556496e089a1540eb00d8d0a9 Mon Sep 17 00:00:00 2001 From: kesku Date: Tue, 14 Apr 2026 23:01:34 +0000 Subject: [PATCH] feat: send X-Source and X-Title headers --- src/perplexity/_client.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/perplexity/_client.py b/src/perplexity/_client.py index eec3b46..3c510d1 100644 --- a/src/perplexity/_client.py +++ b/src/perplexity/_client.py @@ -179,6 +179,8 @@ def default_headers(self) -> dict[str, str | Omit]: return { **super().default_headers, "X-Stainless-Async": "false", + "X-Source": "perplexity-py", + "X-Title": "Perplexity Python SDK", **self._custom_headers, } @@ -391,6 +393,8 @@ def default_headers(self) -> dict[str, str | Omit]: return { **super().default_headers, "X-Stainless-Async": f"async:{get_async_library()}", + "X-Source": "perplexity-py", + "X-Title": "Perplexity Python SDK", **self._custom_headers, }