mirror of
https://github.com/BerriAI/litellm.git
synced 2026-10-09 03:18:44 +00:00
fix(proxy): clean up config model parsing and satisfy strict type and lint gates
This commit is contained in:
parent
5bfcd3ce29
commit
3fe98026ed
1 changed files with 2 additions and 2 deletions
|
|
@ -6446,11 +6446,11 @@ class ProxyConfig:
|
|||
raw_litellm_params = { # mutable-ok: resolved copy for router upsert
|
||||
k: (get_secret(v) if isinstance(v, str) and v.startswith("os.environ/") else v)
|
||||
for k, v in copy.deepcopy(
|
||||
model.get("litellm_params") or dict()
|
||||
model.get("litellm_params") or {} # mutable-ok: config fallback
|
||||
).items() # mutable-ok: safe fallback
|
||||
}
|
||||
|
||||
model_info_dict = copy.deepcopy(model.get("model_info") or dict()) # mutable-ok: isolated info dict
|
||||
model_info_dict = copy.deepcopy(model.get("model_info") or {}) # mutable-ok: config fallback
|
||||
model_id = model_info_dict.get("id", None)
|
||||
if model_id is None:
|
||||
model_id = llm_router.generate_model_id(
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue