litellm/litellm-rust/crates
Devin AI 7f526e0b08
Some checks failed
LiteLLM Rust / rustfmt, clippy, test (push) Has been cancelled
refactor(rust-gateway): harden OCR transport error contract and validation
Generic fixed messages for all JSON/body parse failures so serde field, tag,
and value text can never cross the Axum response, with unit and route marker
tests covering query, base64, credential-path, and unknown-document-type inputs.

Map every CoreError through a typed Serialize error envelope with an exhaustive
match instead of serde_json::Value, dropping error.to_string() for the wrapping
variants and preserving valid upstream 4xx/5xx status codes.

Normalize declared upload MIME values case-insensitively before image
classification and data-URI construction, and treat generic values with
parameters as generic so magic-byte sniffing still runs.

Reject a multipart document form field as reserved and reject blank JSON and
multipart model before routing, keeping duplicate file, model, and timeout
rejection.

Move the transport unit tests into transport/tests.rs, and join or abort the
gateway and mock upstream handles in route tests while draining request bodies
before mock responses.

Co-Authored-By: Ishaan Jaffer <155045088+ishaan-berri@users.noreply.github.com>
2026-07-17 00:53:18 +00:00
..
ai-gateway refactor(rust-gateway): harden OCR transport error contract and validation 2026-07-17 00:53:18 +00:00
core feat(rust-gateway): harden OCR transport inputs and validation 2026-07-17 00:28:06 +00:00
python-bridge feat: port OCR providers to Rust gateway 2026-06-25 13:01:33 -07:00