litellm/litellm-rust/crates/inference-ocr/tests/ocr
Yujong Lee 4f1f834ffb refactor(rust): carry request headers as http::HeaderMap
Request headers moved through llms configs, the OCR handler, WireRequest and
the auth helpers as a hand-rolled Vec<(String, String)>, with helpers that
re-implemented case-insensitive lookup on top of it and converters back to
HeaderMap at the edges. They now travel as http::HeaderMap end to end.

Header names and values a caller or deployment supplies are parsed when they
enter, so an invalid one fails as a typed caller fault (HeaderError,
llms InvalidRequest, auth InvalidHeader) instead of surfacing later as a
reqwest build error. Pre-call callbacks still see a name -> value dict, now
with lowercase names, and an edit that cannot go on the wire raises
ValueError.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-23 15:19:45 -07:00
..
aws_textract.rs refactor(rust): carry request headers as http::HeaderMap 2026-10-23 15:19:45 -07:00
azure_ai.rs refactor(rust-error): nest llms errors in inference and ask predicates in route tests 2026-10-23 13:20:38 -07:00
azure_document_intelligence.rs refactor(rust-error): fix the remaining sweep findings in gateway, llms, auth and cache crates 2026-10-23 14:38:14 -07:00
cohere.rs refactor(rust-error): keep causes as sources in llms and the gateway crates 2026-10-23 12:59:21 -07:00
documents.rs refactor(rust-error): nest llms errors in inference and ask predicates in route tests 2026-10-23 13:20:38 -07:00
lifecycle.rs refactor(rust): carry request headers as http::HeaderMap 2026-10-23 15:19:45 -07:00
machine.rs refactor(rust): carry request headers as http::HeaderMap 2026-10-23 15:19:45 -07:00
main.rs refactor(rust): carry request headers as http::HeaderMap 2026-10-23 15:19:45 -07:00
mistral.rs fix(rust-error): carry OCR provider headers as a HeaderMap and keep outages off the caller 2026-10-23 14:20:08 -07:00
reducto.rs refactor(rust): carry request headers as http::HeaderMap 2026-10-23 15:19:45 -07:00
vertex_ai.rs refactor(rust-error): keep causes as sources across http, auth, secrets, cache and utility crates 2026-10-23 12:33:59 -07:00