mirror of
https://github.com/BerriAI/litellm.git
synced 2026-09-11 22:51:28 +00:00
Merge e2bf42f08e into a2c814654e
This commit is contained in:
commit
427f54ac29
2 changed files with 13 additions and 1 deletions
|
|
@ -10943,8 +10943,8 @@ class Router:
|
|||
"retry_after",
|
||||
"fallbacks",
|
||||
"context_window_fallbacks",
|
||||
"retry_policy",
|
||||
"model_group_retry_policy",
|
||||
"retry_policy",
|
||||
"model_group_alias",
|
||||
"enable_weighted_failover",
|
||||
"enable_tag_filtering",
|
||||
|
|
|
|||
|
|
@ -2822,3 +2822,15 @@ def test_upsert_deployment_clears_stale_budget_config(monkeypatch):
|
|||
|
||||
router.upsert_deployment(deployment=unbudgeted)
|
||||
assert budget_limiter._get_budget_config_for_deployment(model_id) is None
|
||||
|
||||
|
||||
def test_update_router_config_accepts_retry_policy():
|
||||
"""GH#31308: UpdateRouterConfig must accept retry_policy so
|
||||
it is not silently dropped when set via UI or /config/update."""
|
||||
from litellm.types.router import UpdateRouterConfig, RetryPolicy
|
||||
|
||||
config = UpdateRouterConfig(
|
||||
retry_policy={"RateLimitErrorRetries": 3}
|
||||
)
|
||||
assert isinstance(config.retry_policy, RetryPolicy)
|
||||
assert config.retry_policy.RateLimitErrorRetries == 3
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue