#28882 bug(rerank): extra_headers silently dropped for hosted_vllm and other rerank providers
## Bug Report
**LiteLLM version**: current `litellm_internal_staging`
### What happened
When using the `hosted_vllm` rerank provider (and other non-Bedrock rerank providers) with `extra_headers` in the call parameters, the extra headers are silently dropped and never forwarded to the HTTP request. This breaks any deployment where a gateway or sidecar proxy requires custom headers for routing — for example an Istio HTTPRoute that matches on `x-model-name`.
### Root cause
In `litellm/rerank_api/main.py`, the `rerank()` function dispatches to provider branches. The **Bedrock** branch correctly merges `extra_headers`:
```python # Bedrock branch (correct) merged_headers = headers or litellm.headers or {} extra_headers_from_kwargs = kwargs.get("extra_headers") if extra_headers_from_kwargs: merged_headers = {**merged_headers, **extra_headers_from_kwargs} response = bedrock_rerank.rerank(..., extra_headers=merged_headers) ```
But **all other providers** (hosted_vllm, cohere, azure_ai, infinity, together_ai, deepinfra, watsonx, huggingface, fireworks_ai, jina, nvidia) pass only:
```python headers=headers or litellm.headers or {}, # ← extra_headers silently dropped ```
### Imp…