litellm/litellm-rust/crates/router-core
yujonglee 0b0a1e8e02 fix(router): fall back by the group a pick was routed to, whatever fails after the reroute (#52510)
A pre-routing hook can reroute a request to another group, or bind it to the group it is served for. A failed attempt on the picked deployment already named both groups, so the fallbacks were looked up by them. A failure before a deployment was picked named neither: nothing healthy in the routed group, a filter that raised, or a routing group that is gone. The fallbacks were then looked up by the requested name and the routed group's own chain was skipped.

The pick now stamps both groups on every failure that follows the reroute, in one place, as the Python router records the hook's selection before it resolves the group.

(cherry picked from commit 0582a32b59)
Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
2026-11-20 15:54:25 +00:00
..
src fix(router): fall back by the group a pick was routed to, whatever fails after the reroute (#52510) 2026-11-20 15:54:25 +00:00
tests fix(router): fall back by the group a pick was routed to, whatever fails after the reroute (#52510) 2026-11-20 15:54:25 +00:00
Cargo.toml feat(router): add the Rust router core with the host as its only boundary (#49513) 2026-11-04 21:47:58 -08:00