litellm/litellm-rust/crates/inference-ocr/src
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
..
arguments.rs refactor(ocr): forward provider fields through the shared projection 2026-10-08 09:22:02 -07:00
client.rs refactor(rust): extract inference-ocr crate (#44832) 2026-10-06 07:17:26 -07:00
document.rs refactor(rust): extract inference-ocr crate (#44832) 2026-10-06 07:17:26 -07:00
handler.rs refactor(rust): carry provider credentials as typed ConnectionArguments 2026-10-08 09:21:17 -07:00
lib.rs refactor(rust): extract inference-ocr crate (#44832) 2026-10-06 07:17:26 -07:00
prepare.rs refactor(rust): carry provider credentials as typed ConnectionArguments 2026-10-08 09:21:17 -07:00
provider_config.rs refactor(ocr): forward provider fields through the shared projection 2026-10-08 09:22:02 -07:00
route.rs refactor(rust): extract inference-ocr crate (#44832) 2026-10-06 07:17:26 -07:00
types.rs refactor(rust): carry provider credentials as typed ConnectionArguments 2026-10-08 09:21:17 -07:00
wire.rs refactor(ocr): forward provider fields through the shared projection 2026-10-08 09:22:02 -07:00