mirror of
https://github.com/BerriAI/litellm.git
synced 2026-11-30 01:08:33 +00:00
* fix(managed files): keep one downstream copy per litellm_proxy deployment that covers every target it serves * fix(managed files): skip targets an earlier litellm_proxy upload already covers * fix(managed_files): keep the downstream copy that serves the most targets and send batch uploads one target A litellm_proxy upload whose target lookup failed left that target out, and the hook then deleted the later copy that served it. Each deployment now keeps the copy that serves the most targets, and the copy the managed id carries is removed with the file. A purpose=batch upload sends each downstream upload only its own target again, since the downstream refuses a multi-target batch file for a model it runs itself. * fix(router): judge other upload targets by their own routing after an order fallback * fix(router): name every target a fallback upload serves downstream and keep the latest tied proxy copy * fix(managed files): count a target covered only when its copy lists it, and drop repeat proxy copies at once A target now counts as covered only when every litellm_proxy copy on its chat route names it, so a routing lookup that fails at the reached order no longer skips that target's upload A later litellm_proxy copy that lists no target an earlier copy on the same deployment misses is a repeat, so the hook deletes it right away instead of keeping both until the file is deleted. After an order fallback this leaves one copy per provider downstream --------- Co-authored-by: mateo-berri <277851410+mateo-berri@users.noreply.github.com> |
||
|---|---|---|
| .. | ||
| enterprise_callbacks | ||
| integrations | ||
| proxy | ||
| __init__.py | ||
| conftest.py | ||