From 8d2845ef4e3ccacb2bf899d8bb533fd1bfcd3581 Mon Sep 17 00:00:00 2001 From: Tai An Date: Thu, 28 May 2026 06:23:36 -0700 Subject: [PATCH] style: black reformat after SGLang rerank fix Signed-off-by: Tai An --- litellm/llms/hosted_vllm/rerank/transformation.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/litellm/llms/hosted_vllm/rerank/transformation.py b/litellm/llms/hosted_vllm/rerank/transformation.py index a5699fb1c1b..eebc9a90091 100644 --- a/litellm/llms/hosted_vllm/rerank/transformation.py +++ b/litellm/llms/hosted_vllm/rerank/transformation.py @@ -168,9 +168,7 @@ class HostedVLLMRerankConfig(BaseRerankConfig): message=error_message, status_code=status_code, headers=headers ) - def _transform_response( - self, response: Union[dict, list] - ) -> RerankResponse: + def _transform_response(self, response: Union[dict, list]) -> RerankResponse: # SGLang's /v1/rerank endpoint returns a bare list of result objects # instead of the OpenAI/Cohere-style {"results": [...], "usage": {...}} # envelope. Normalize both shapes here so hosted_vllm covers both.