mirror of
https://github.com/BerriAI/litellm.git
synced 2026-11-26 22:30:11 +00:00
* chore(rust): prune unused inference crate dependencies Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com> * docs(rust): rewrite inference layering docs for the split format crates Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com> * docs(rust): note transcription and RouteError alias exceptions in inference AGENTS.md Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com> --------- Co-authored-by: Yujong Lee <yujong@berri.ai> Co-authored-by: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
801 B
801 B
- Shared base and layering rules:
../inference/AGENTS.md - This crate owns OCR call orchestration; payloads belong in
litellm-llms-types, transformations and the request handler inllms/src/base_llm/ocrandllms/src/<provider>/ocr - The route returns its completed response directly
- Route closures supply OCR-specific host capabilities, such as the caller's Azure AD token provider (
src/route.rs) - Provider code reaches the caller's hooks mid-call only through
litellm_llms::base_llm::ocr::handler::CallHooks, which this crate implements over its host until it folds intolitellm_host::interceptors::Interceptors - OCR failures use
base_llm/ocr/error.rs, the recorded exception tolitellm_inference::RouteErroruntil OCR folds intolitellm_llms::Error