mirror of
https://github.com/BerriAI/litellm.git
synced 2026-10-02 02:11:58 +00:00
docs(proxy): add docstring to _get_loop_type documenting LITELLM_DISABLE_UVLOOP
This commit is contained in:
parent
4959351848
commit
e2d640bf68
1 changed files with 6 additions and 0 deletions
|
|
@ -479,6 +479,12 @@ class ProxyInitializationHelpers:
|
|||
|
||||
@staticmethod
|
||||
def _get_loop_type():
|
||||
"""Return the uvicorn event-loop type for the current platform.
|
||||
|
||||
Returns ``None`` on Windows (uvicorn default), ``"asyncio"`` when
|
||||
``LITELLM_DISABLE_UVLOOP`` is set to ``1``, ``true``, or ``yes``, and
|
||||
``"uvloop"`` otherwise.
|
||||
"""
|
||||
if sys.platform in ("win32", "cygwin", "cli"):
|
||||
return None
|
||||
if os.environ.get("LITELLM_DISABLE_UVLOOP", "").strip().lower() in (
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue