litellm/litellm-rust/crates/python-bridge
Yujong Lee 4cc0f5926b refactor(rust-bridge): read Messages and OCR through the shared request view
Messages and OCR read arguments with lookup (keyword first, then the bound
request) and resolved connection options by hand: plain api_key/api_base
strings, no base_url, empty strings kept, and OCR failed on any missing
key. Both now merge the hook rewrites once and resolve connection options
through the same route_options chat and Responses use, so base_url is a
fallback, an empty api_key or api_base counts as absent, a top-level None
is absent, and request_timeout backs up timeout.

connection_defaults is now an optional route_host hook. Messages and OCR
don't define one: Python resolves their keys from the argument or the
environment, never from litellm.api_key.

InferenceHost becomes RouteCodec in routes/codec.rs.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-08 09:15:58 -07:00
..
benches refactor(rust): add types and core-utils crates, unify the provider error 2026-09-17 22:01:14 -07:00
src refactor(rust-bridge): read Messages and OCR through the shared request view 2026-10-08 09:15:58 -07:00
tests refactor(rust): add types and core-utils crates, unify the provider error 2026-09-17 22:01:14 -07:00
AGENTS.md refactor(rust-bridge): read one request view and treat every None as absent 2026-10-08 09:15:22 -07:00
build.rs feat: package Rust OCR bridge in LiteLLM wheel (#31267) 2026-06-25 12:32:55 -07:00
Cargo.toml refactor(rust): extract inference-ocr crate (#44832) 2026-10-06 07:17:26 -07:00
preflight_contract.json refactor(rust): move credential inheritance and the SDK limits out of the legacy callback crate into a driver preflight (#43259) 2026-09-26 01:09:36 +00:00