From 9cc14a6c492efa5fbbcdc89438842b786afe5908 Mon Sep 17 00:00:00 2001 From: Saleh Alghusson Date: Thu, 27 Aug 2026 16:46:03 -0400 Subject: [PATCH] Satisfy type discipline for Perplexity headers --- litellm/llms/perplexity/chat/transformation.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/litellm/llms/perplexity/chat/transformation.py b/litellm/llms/perplexity/chat/transformation.py index 2aa894eeed5..c29f35dece9 100644 --- a/litellm/llms/perplexity/chat/transformation.py +++ b/litellm/llms/perplexity/chat/transformation.py @@ -29,14 +29,14 @@ class PerplexityChatConfig(OpenAIGPTConfig): def validate_environment( self, - headers: dict, + headers: dict, # mutable-ok: matches the base chat transform signature model: str, - messages: list[AllMessageValues], - optional_params: dict, - litellm_params: dict, + messages: list[AllMessageValues], # mutable-ok: matches the base chat transform signature + optional_params: dict, # mutable-ok: matches the base chat transform signature + litellm_params: dict, # mutable-ok: matches the base chat transform signature api_key: str | None = None, api_base: str | None = None, - ) -> dict: + ) -> dict: # mutable-ok: matches the base chat transform signature headers.setdefault("X-Pplx-Integration", "litellm") return super().validate_environment( headers, model, messages, optional_params, litellm_params, api_key, api_base