mirror of
https://github.com/BerriAI/litellm.git
synced 2026-12-03 01:38:46 +00:00
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> |
||
|---|---|---|
| .. | ||
| aws_textract.rs | ||
| azure_ai.rs | ||
| azure_document_intelligence.rs | ||
| cohere.rs | ||
| documents.rs | ||
| lifecycle.rs | ||
| machine.rs | ||
| main.rs | ||
| mistral.rs | ||
| reducto.rs | ||
| vertex_ai.rs | ||