litellm/litellm-rust/crates/python-bridge/src
Yujong Lee c0705f31b4 fix(rust): read OCR env-backed constants instead of hardcoding their defaults
Native OCR hardcoded the default of five Python constants that come from
env vars, so an operator setting them saw no effect:
REQUEST_TIMEOUT (Rust used 600s, Python 6000s), MAX_IMAGE_URL_DOWNLOAD_SIZE_MB
(0 disables document downloads), AZURE_OPERATION_POLLING_TIMEOUT,
AZURE_DOCUMENT_INTELLIGENCE_API_VERSION and
AZURE_DOCUMENT_INTELLIGENCE_DEFAULT_DPI. OcrSettings reads them through
Lookup with Python's parsing, the bridge builds it per call and OcrClient
carries it into the connection. A zero per-call timeout now falls back to
REQUEST_TIMEOUT, matching `timeout or request_timeout`.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-09-18 20:51:55 -07:00
..
routes fix(rust): read OCR env-backed constants instead of hardcoding their defaults 2026-09-18 20:51:55 -07:00
credentials.rs refactor(rust): add types and core-utils crates, unify the provider error 2026-09-17 22:01:14 -07:00
diagnostics.rs refactor(rust): add types and core-utils crates, unify the provider error 2026-09-17 22:01:14 -07:00
errors.rs refactor(rust): split custom_httpx into litellm-http and the OCR handler 2026-09-18 20:46:36 -07:00
http.rs refactor(rust): split custom_httpx into litellm-http and the OCR handler 2026-09-18 20:46:36 -07:00
lib.rs refactor(rust): read litellm HTTP globals through one Python shim and tighten the http pool 2026-09-18 17:23:26 -07:00
marshal.rs add streaming message 2026-09-18 15:45:08 -07:00
python_settings.rs feat(rust): serve every gateway HTTP setting natively instead of declining to Python 2026-09-18 19:39:07 -07:00
token_counter.rs refactor(rust): add types and core-utils crates, unify the provider error 2026-09-17 22:01:14 -07:00