mirror of
https://github.com/BerriAI/litellm.git
synced 2026-10-10 03:28:53 +00:00
Branch on status before reading upstream error bodies and stream at most the error cap for document fetch, Reducto upload, Azure poll, and primary provider responses; add a chunked no-Content-Length oversized-error regression. Reuse a bounded cache of security-validating document clients keyed by scheme, host, port, and the full validated address set so redirects across ports cannot reuse stale pins, replacing per-call client construction while preserving the anti-rebinding contract. Import the optional native RustOcrInputError directly behind ImportError instead of getattr, keeping the test override. Pin the url workspace dependency to =2.5.8 and expand the IPv6 denylist to NAT64 64:ff9b::/96 and 64:ff9b:1::/48 with embedded private or metadata IPv4, discard 100::/64, Teredo 2001::/32, benchmarking 2001:2::/48, ORCHID and ORCHIDv2, and 6to4 2002::/16 with embedded private IPv4, keeping globally routable targets allowed. Remove PR-added comments and docstrings across Rust, Python, and tests. Co-Authored-By: Ishaan Jaffer <155045088+ishaan-berri@users.noreply.github.com>
31 lines
1 KiB
TOML
31 lines
1 KiB
TOML
[workspace]
|
|
members = [
|
|
"crates/core",
|
|
"crates/ai-gateway",
|
|
"crates/python-bridge",
|
|
]
|
|
resolver = "2"
|
|
|
|
[workspace.package]
|
|
edition = "2021"
|
|
license = "MIT"
|
|
repository = "https://github.com/BerriAI/litellm"
|
|
|
|
[workspace.dependencies]
|
|
litellm-core = { path = "crates/core" }
|
|
litellm-ai-gateway = { path = "crates/ai-gateway", default-features = false }
|
|
axum = "0.7"
|
|
pyo3 = "0.23.5"
|
|
pyo3-async-runtimes = { version = "0.23.0", features = ["tokio-runtime"] }
|
|
rand = "0.8"
|
|
reqwest = { version = "0.12", default-features = false, features = ["blocking", "json", "multipart", "rustls-tls", "http2", "stream"] }
|
|
serde = { version = "1.0", features = ["derive"] }
|
|
serde_json = "1.0"
|
|
sha2 = "0.10"
|
|
subtle = "2"
|
|
thiserror = "2.0"
|
|
tokio = { version = "1", features = ["rt-multi-thread", "macros", "time", "net"] }
|
|
tokio-tungstenite = { version = "0.24", default-features = false, features = ["connect", "rustls-tls-native-roots"] }
|
|
futures-util = { version = "0.3", default-features = false, features = ["sink", "std"] }
|
|
base64 = "0.22"
|
|
url = "=2.5.8"
|