mirror of
https://github.com/BerriAI/litellm.git
synced 2026-11-24 22:09:56 +00:00
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> |
||
|---|---|---|
| .. | ||
| crates | ||
| .gitignore | ||
| Cargo.lock | ||
| Cargo.toml | ||