litellm/litellm-rust
Yujong Lee dd7b1ba757 refactor(rust): hand the OCR route host its Python helpers instead of importing the package
The OCR route host looked up litellm.rust_bridge.ocr.route_host and
litellm.rust_bridge.timeouts by module path at call time, a back-edge
from the extension into package internals that unit tests had to
stub through sys.modules. Python now passes an OcrHostHelpers value
(response, map_failure, timeout_to_seconds) as the hook's fourth
argument, the host keeps that handle for the call and traverses it
for GC, and the bridge imports nothing from the package.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
2026-09-17 20:18:50 -07:00
..
crates refactor(rust): hand the OCR route host its Python helpers instead of importing the package 2026-09-17 20:18:50 -07:00
.gitignore feat: add LiteLLM Rust workspace with Mistral OCR bridge (#31033) 2026-06-23 13:16:47 -07:00
Cargo.lock refactor(rust): declare bridge routes as plain PyO3 functions and drop the route macro 2026-09-17 19:20:50 -07:00
Cargo.toml feat(rust): add the router and cache machine layers over the callback contract 2026-09-17 18:22:28 -07:00