fixed http timeout
This commit is contained in:
parent
7977216174
commit
d11528e1a9
1 changed files with 2 additions and 0 deletions
|
|
@ -76,6 +76,8 @@ def _get_http_client() -> Optional[httpx.AsyncClient]:
|
||||||
timeout=httpx.Timeout(
|
timeout=httpx.Timeout(
|
||||||
connect=HTTP_CONNECT_TIMEOUT,
|
connect=HTTP_CONNECT_TIMEOUT,
|
||||||
read=HTTP_REQUEST_TIMEOUT,
|
read=HTTP_REQUEST_TIMEOUT,
|
||||||
|
write=HTTP_REQUEST_TIMEOUT,
|
||||||
|
pool=HTTP_CONNECT_TIMEOUT,
|
||||||
),
|
),
|
||||||
headers={
|
headers={
|
||||||
"User-Agent": f"OpenRAG-Backend/{OPENRAG_VERSION}",
|
"User-Agent": f"OpenRAG-Backend/{OPENRAG_VERSION}",
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue