mirror of
https://github.com/BerriAI/litellm.git
synced 2026-09-10 22:41:41 +00:00
fix: add better error handling for misconfig on health check (#19441)
This commit is contained in:
parent
09941dd1d1
commit
76433f9f04
1 changed files with 8 additions and 0 deletions
|
|
@ -2738,6 +2738,14 @@ class ProxyConfig:
|
|||
for k, v in router_settings.items():
|
||||
if k in available_args:
|
||||
router_params[k] = v
|
||||
elif k == "health_check_interval":
|
||||
raise ValueError(
|
||||
f"'{k}' is NOT a valid router_settings parameter. Please move it to 'general_settings'."
|
||||
)
|
||||
else:
|
||||
verbose_proxy_logger.warning(
|
||||
f"Key '{k}' is not a valid argument for Router.__init__(). Ignoring this key."
|
||||
)
|
||||
router = litellm.Router(
|
||||
**router_params,
|
||||
assistants_config=assistants_config,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue