style: black reformat after SGLang rerank fix

Signed-off-by: Tai An <antai12232931@outlook.com>
This commit is contained in:
Tai An 2026-05-28 06:23:36 -07:00
parent ffbcbf62e1
commit 8d2845ef4e

View file

@ -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.