mirror of
https://github.com/BerriAI/litellm.git
synced 2026-09-19 00:01:29 +00:00
fix(key_management): avoid mutating default routes payload
Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
This commit is contained in:
parent
e291016c3f
commit
8187249fa5
1 changed files with 1 additions and 1 deletions
|
|
@ -1199,7 +1199,7 @@ async def _common_key_generation_helper(
|
|||
else None
|
||||
)
|
||||
if isinstance(_default_allowed_routes, list) and not data_json.get("allowed_routes"):
|
||||
data_json["allowed_routes"] = list(_default_allowed_routes)
|
||||
data_json = {**data_json, "allowed_routes": list(_default_allowed_routes)}
|
||||
|
||||
# if we get max_budget passed to /key/generate, then use it as key_max_budget. Since generate_key_helper_fn is used to make new users
|
||||
if "max_budget" in data_json:
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue