mirror of
https://github.com/BerriAI/litellm.git
synced 2026-09-21 00:21:49 +00:00
OCR transformations, BaseOcrConfig with its response and connection types, the OCR error, and the HTTP pieces (custom_httpx: http_handler, transport, media, llm_http_handler with OcrClient and the request/response handler) now live in litellm-llms at their Python paths. Provider code no longer reaches into the route: it gets the caller's hooks through a route-neutral CallHooks trait that core implements over its host, and core dispatches to llm_http_handler::ocr with the concrete config, the way Python calls base_llm_http_handler.ocr(provider_config=...). Core keeps the route: entrypoint, request types, credential fallback, provider dispatch, the machine and hook glue. ocr/mod.rs no longer re-exports anything, provider constants moved next to their only users, and provider tests that drive the whole route moved to core's route test files. Twenty-two of those were exact copies of tests already there and were dropped; every one still runs once. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
40 lines
905 B
TOML
40 lines
905 B
TOML
[package]
|
|
name = "litellm-python-bridge"
|
|
version = "0.1.0"
|
|
edition.workspace = true
|
|
license.workspace = true
|
|
repository.workspace = true
|
|
|
|
[lib]
|
|
name = "_native"
|
|
crate-type = ["cdylib"]
|
|
|
|
[features]
|
|
default = ["abi3"]
|
|
abi3 = ["pyo3/abi3-py310"]
|
|
extension-module = ["pyo3/extension-module"]
|
|
panic-test = []
|
|
|
|
[dependencies]
|
|
bytes.workspace = true
|
|
litellm-auth.workspace = true
|
|
litellm-callbacks-legacy.workspace = true
|
|
litellm-core.workspace = true
|
|
litellm-llms.workspace = true
|
|
litellm-types.workspace = true
|
|
litellm-host-python.workspace = true
|
|
litellm-token-counter.workspace = true
|
|
pyo3.workspace = true
|
|
pyo3-async-runtimes.workspace = true
|
|
serde_json.workspace = true
|
|
tokio = { workspace = true, features = ["sync"] }
|
|
|
|
[dev-dependencies]
|
|
criterion.workspace = true
|
|
futures-util.workspace = true
|
|
rstest.workspace = true
|
|
tokio-tungstenite.workspace = true
|
|
|
|
[[bench]]
|
|
name = "serialization"
|
|
harness = false
|