Skip to content

Commit 0c1307b

Browse files
authored
add jina rerank http timout parameter (langgenius#10476)
1 parent b8b6cd4 commit 0c1307b

File tree

1 file changed

+1
-0
lines changed
  • api/core/model_runtime/model_providers/jina/rerank

1 file changed

+1
-0
lines changed

api/core/model_runtime/model_providers/jina/rerank/rerank.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,7 @@ def _invoke(
5555
base_url + "/rerank",
5656
json={"model": model, "query": query, "documents": docs, "top_n": top_n},
5757
headers={"Authorization": f"Bearer {credentials.get('api_key')}"},
58+
timeout=20,
5859
)
5960
response.raise_for_status()
6061
results = response.json()

0 commit comments

Comments
 (0)