Set explicit 120s timeout on the vllm reranker HTTP client
This commit is contained in:
parent
543aba7547
commit
f31060e741
1 changed files with 3 additions and 1 deletions
|
|
@ -28,7 +28,9 @@ class VLLMReranker(RerankerBase):
|
|||
self._model = model
|
||||
self._base_url = base_url
|
||||
# One client reused across rerank calls (connection kept alive).
|
||||
self._client = httpx.AsyncClient()
|
||||
# Multimodal document batches can take far longer than httpx's 5s
|
||||
# default timeout to score.
|
||||
self._client = httpx.AsyncClient(timeout=httpx.Timeout(120.0))
|
||||
|
||||
async def aclose(self) -> None:
|
||||
await self._client.aclose()
|
||||
|
|
|
|||
Loading…
Reference in a new issue