litellm/litellm-rust/crates/inference-ocr
Yujong Lee 835f9241e5 refactor(ocr): forward provider fields through the shared projection
OCR built optional_params from a per-provider allowlist, so any field a
provider's Rust config did not list was dropped without an error. OCR now
projects the request like chat and Responses: every field that isn't
LiteLLM-owned reaches the provider (unknown ones through compose_body), and
the only owned names it forwards are req_format and max_response_bytes.
Credentials already travel as ConnectionArguments. A field that isn't JSON
can't be sent and is rejected instead of dropped.

The OCR allowlist, ArgumentSpec and the wire wrappers around them are gone.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-08 09:22:02 -07:00
..
src refactor(ocr): forward provider fields through the shared projection 2026-10-08 09:22:02 -07:00
tests refactor(rust): extract inference-testing crate (#44873) 2026-10-06 16:33:06 +00:00
AGENTS.md chore(rust): prune inference deps and rewrite layering docs (#44836) 2026-10-06 07:17:27 -07:00
Cargo.toml refactor(rust): extract inference-testing crate (#44873) 2026-10-06 16:33:06 +00:00