mirror of
https://github.com/BerriAI/litellm.git
synced 2025-04-25 10:44:24 +00:00
fix(router.py): increasing connection pool limits for azure router
This commit is contained in:
parent
f07daa3780
commit
ec83243521
1 changed files with 20 additions and 0 deletions
|
@ -1384,6 +1384,10 @@ class Router:
|
|||
max_retries=max_retries,
|
||||
http_client=httpx.AsyncClient(
|
||||
transport=AsyncCustomHTTPTransport(),
|
||||
limits=httpx.Limits(
|
||||
max_connections=1000,
|
||||
max_keepalive_connections=100
|
||||
)
|
||||
), # type: ignore
|
||||
)
|
||||
self.cache.set_cache(
|
||||
|
@ -1402,6 +1406,10 @@ class Router:
|
|||
max_retries=max_retries,
|
||||
http_client=httpx.Client(
|
||||
transport=CustomHTTPTransport(),
|
||||
limits=httpx.Limits(
|
||||
max_connections=1000,
|
||||
max_keepalive_connections=100
|
||||
)
|
||||
), # type: ignore
|
||||
)
|
||||
self.cache.set_cache(
|
||||
|
@ -1419,6 +1427,12 @@ class Router:
|
|||
api_version=api_version,
|
||||
timeout=stream_timeout,
|
||||
max_retries=max_retries,
|
||||
http_client=httpx.Client(
|
||||
limits=httpx.Limits(
|
||||
max_connections=1000,
|
||||
max_keepalive_connections=100
|
||||
)
|
||||
)
|
||||
)
|
||||
self.cache.set_cache(
|
||||
key=cache_key,
|
||||
|
@ -1434,6 +1448,12 @@ class Router:
|
|||
api_version=api_version,
|
||||
timeout=stream_timeout,
|
||||
max_retries=max_retries,
|
||||
http_client=httpx.Client(
|
||||
limits=httpx.Limits(
|
||||
max_connections=1000,
|
||||
max_keepalive_connections=100
|
||||
)
|
||||
)
|
||||
)
|
||||
self.cache.set_cache(
|
||||
key=cache_key,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue