mirror of
https://github.com/BerriAI/litellm.git
synced 2026-10-11 03:38:38 +00:00
|
Some checks failed
LiteLLM Rust / rustfmt, clippy, test (push) Has been cancelled
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> |
||
|---|---|---|
| .. | ||
| ai-gateway | ||
| core | ||
| python-bridge | ||