Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions tests/test_litellm/proxy/test_proxy_cli.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import inspect
import os
import sys
from pathlib import Path
Expand All @@ -15,6 +16,8 @@
import builtins
import types

import uvicorn

from litellm.proxy.proxy_cli import ProxyInitializationHelpers


Expand Down Expand Up @@ -135,6 +138,16 @@ def __init__(self, timeout_worker_healthcheck=None):
)
assert args["timeout_worker_healthcheck"] == 15

def test_installed_uvicorn_supports_worker_flags(self):
params = inspect.signature(uvicorn.Config.__init__).parameters
assert "timeout_worker_healthcheck" in params
assert "limit_max_requests_jitter" in params

args = ProxyInitializationHelpers._get_default_unvicorn_init_args(
"localhost", 8000, timeout_worker_healthcheck=30
)
assert args["timeout_worker_healthcheck"] == 30

def test_get_reload_options_no_config_still_watches_env(self):
opts = ProxyInitializationHelpers._get_reload_options(None)
assert opts["reload"] is True
Expand Down
122 changes: 61 additions & 61 deletions uv.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading