litellm/litellm-rust/crates/host-python/Cargo.toml
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

27 lines
611 B
TOML

[package]
name = "litellm-host-python"
version = "0.1.0"
edition.workspace = true
license.workspace = true
repository.workspace = true
[dependencies]
litellm-coroutine.workspace = true
litellm-error.workspace = true
litellm-host.workspace = true
bytes.workspace = true
futures-util.workspace = true
parking_lot.workspace = true
serde.workspace = true
thiserror.workspace = true
tokio = { workspace = true, features = ["rt", "sync"] }
pyo3.workspace = true
pyo3-async-runtimes.workspace = true
pythonize = "0.29.0"
[dev-dependencies]
http.workspace = true
rstest.workspace = true
serde_json.workspace = true