litellm/litellm-rust/crates
Yujong Lee 5a76346047 refactor(rust): move OCR provider code into litellm-llms and delete core/src/llms
OCR transformations, BaseOcrConfig with its response and connection types,
the OCR error, and the HTTP pieces (custom_httpx: http_handler, transport,
media, llm_http_handler with OcrClient and the request/response handler)
now live in litellm-llms at their Python paths. Provider code no longer
reaches into the route: it gets the caller's hooks through a route-neutral
CallHooks trait that core implements over its host, and core dispatches to
llm_http_handler::ocr with the concrete config, the way Python calls
base_llm_http_handler.ocr(provider_config=...).

Core keeps the route: entrypoint, request types, credential fallback,
provider dispatch, the machine and hook glue. ocr/mod.rs no longer
re-exports anything, provider constants moved next to their only users,
and provider tests that drive the whole route moved to core's route test
files. Twenty-two of those were exact copies of tests already there and
were dropped; every one still runs once.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-09-17 22:29:08 -07:00
..
auth refactor(rust): run OCR through a route-neutral callback contract and a legacy Logging adapter 2026-09-17 21:13:16 -07:00
auth-aws refactor(rust): extract auth and cache crates 2026-09-16 18:12:11 +00:00
auth-azure refactor(rust): run OCR through a route-neutral callback contract and a legacy Logging adapter 2026-09-17 21:13:16 -07:00
auth-gcp refactor(rust): extract auth and cache crates 2026-09-16 18:12:11 +00:00
cache refactor(rust): extract auth and cache crates 2026-09-16 18:12:11 +00:00
cache-memory fix(rust): evict in-memory cache entries at the expiry boundary 2026-09-16 18:30:45 +00:00
cache-redis fix(rust): address Redis cache review findings 2026-09-16 23:19:28 +00:00
callbacks refactor(rust): run OCR through a route-neutral callback contract and a legacy Logging adapter 2026-09-17 21:13:16 -07:00
callbacks-legacy refactor(rust): run OCR through a route-neutral callback contract and a legacy Logging adapter 2026-09-17 21:13:16 -07:00
core refactor(rust): move OCR provider code into litellm-llms and delete core/src/llms 2026-09-17 22:29:08 -07:00
core-utils refactor(rust): move OCR provider code into litellm-llms and delete core/src/llms 2026-09-17 22:29:08 -07:00
framer feat(rust): add standalone framing crate 2026-09-17 00:30:43 +00:00
host-python refactor(rust): run OCR through a route-neutral callback contract and a legacy Logging adapter 2026-09-17 21:13:16 -07:00
llms refactor(rust): move OCR provider code into litellm-llms and delete core/src/llms 2026-09-17 22:29:08 -07:00
python-bridge refactor(rust): move OCR provider code into litellm-llms and delete core/src/llms 2026-09-17 22:29:08 -07:00
token-counter test(rust): assert merge cost scales linearly instead of a wall-clock bound 2026-09-16 19:43:42 +00:00
types refactor(rust): add types and core-utils crates, unify the provider error 2026-09-17 22:01:14 -07:00