mirror of
https://github.com/BerriAI/litellm.git
synced 2025-04-26 11:14:04 +00:00
(proxy perf improvement) - use uvloop
for higher RPS (10%-20% higher RPS) (#7662)
* uvicorn use uvloop * fix uvloop==0.21.0 * add uvloop to pyproject * test_completion_response_ratelimit_headers
This commit is contained in:
parent
a85de46ef7
commit
2507c275f6
7 changed files with 261 additions and 197 deletions
|
@ -671,7 +671,10 @@ def run_server( # noqa: PLR0915
|
|||
)
|
||||
uvicorn_args["ssl_keyfile"] = ssl_keyfile_path
|
||||
uvicorn_args["ssl_certfile"] = ssl_certfile_path
|
||||
uvicorn.run(**uvicorn_args)
|
||||
uvicorn.run(
|
||||
**uvicorn_args,
|
||||
loop="uvloop",
|
||||
)
|
||||
elif run_gunicorn is True:
|
||||
# Gunicorn Application Class
|
||||
class StandaloneApplication(gunicorn.app.base.BaseApplication):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue