mirror of
https://github.com/BerriAI/litellm.git
synced 2026-09-21 00:21:49 +00:00
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> |
||
|---|---|---|
| .. | ||
| routes | ||
| credentials.rs | ||
| diagnostics.rs | ||
| errors.rs | ||
| http.rs | ||
| lib.rs | ||
| marshal.rs | ||
| python_settings.rs | ||
| token_counter.rs | ||