mirror of
https://git.mirrors.martin98.com/https://github.com/langgenius/dify.git
synced 2025-08-20 01:59:13 +08:00
add jina rerank http timout parameter (#10476)
This commit is contained in:
parent
b8b6cd409a
commit
0c1307b083
@ -55,6 +55,7 @@ class JinaRerankModel(RerankModel):
|
|||||||
base_url + "/rerank",
|
base_url + "/rerank",
|
||||||
json={"model": model, "query": query, "documents": docs, "top_n": top_n},
|
json={"model": model, "query": query, "documents": docs, "top_n": top_n},
|
||||||
headers={"Authorization": f"Bearer {credentials.get('api_key')}"},
|
headers={"Authorization": f"Bearer {credentials.get('api_key')}"},
|
||||||
|
timeout=20,
|
||||||
)
|
)
|
||||||
response.raise_for_status()
|
response.raise_for_status()
|
||||||
results = response.json()
|
results = response.json()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user