litellm/litellm-rust/crates/core-utils
Yujong Lee 836bf7d897 refactor(rust): make the exception mapper a pure rule table
Rebuild exception_type around text rules per provider family and one shared
status table. The mapper takes the context, an injected redactor and the
original failure, and returns a PublicError with the message, the real
upstream response and the debug text. Every divergence from the Python
mapper and every known gap is listed in the module header

Match Python on a standalone 429 with an unknown status and on Cohere's
rules for failures without a status. Drop python_repr and the unread
public_failures fixtures
2026-09-18 13:59:36 -07:00
..
src refactor(rust): make the exception mapper a pure rule table 2026-09-18 13:59:36 -07:00
Cargo.toml refactor(rust): make the exception mapper a pure rule table 2026-09-18 13:59:36 -07:00