mirror of
https://github.com/BerriAI/litellm.git
synced 2026-11-28 00:00:38 +00:00
* fix(ocr): report an unreachable document URL as a 400, not a provider 500 A refused, unresolvable or dropped download of the caller's document_url had no status, so the proxy reported a 500 naming the provider even though the provider was never called. Classify it like the existing download status passthrough, as the caller's 400. * fix(ocr): keep the download cause in the 400 and retry dropped downloads Media host failures (DNS, transport, a redirect without a usable Location) are now request faults in litellm-http, so the OCR bridge answers 400 with the cause chain instead of a fixed message. A transport failure gets up to three attempts inside the one download deadline, like Python's media fetch, since the router no longer retries the 400 * fix(ocr): wait between download retries and retry failed lookups, not connect timeouts * fix(ocr): answer an unreachable document with a DocumentFetchError the router retries * fix(ocr): raise a typed native error for an unreachable document The bridge raises RustDocumentFetchError instead of tagging the exception with an attribute, and the public DocumentFetchError keeps it as context * fix(ocr): keep retry counts and debug info on an unreachable document error * refactor(ocr): import the native module as a whole in the OCR route --------- Co-authored-by: mateo-berri <277851410+mateo-berri@users.noreply.github.com> |
||
|---|---|---|
| .. | ||
| pre_call_checks | ||
| __init__.py | ||
| test_access_windows.py | ||
| test_add_retry_fallback_headers.py | ||
| test_client_initalization_utils.py | ||
| test_cooldown_cache.py | ||
| test_cooldown_handlers.py | ||
| test_deployment_pricing.py | ||
| test_dynamic_queue.py | ||
| test_dynamic_queue_redis.py | ||
| test_dynamic_queue_router.py | ||
| test_embedding_batch_size_check.py | ||
| test_endpoint_eligibility.py | ||
| test_fallback_event_handlers.py | ||
| test_fallback_event_v2_dispatch.py | ||
| test_get_retry_from_policy.py | ||
| test_handle_error.py | ||
| test_health_check_allowed_fails_integration.py | ||
| test_health_state_cache.py | ||
| test_kubernetes_pod_discovery.py | ||
| test_pattern_match_deployments.py | ||
| test_prompt_caching_cache.py | ||
| test_ptu_shares.py | ||
| test_reasoning_effort_capability.py | ||
| test_request_priority.py | ||
| test_router_health_check_routing.py | ||
| test_router_interactions_endpoints.py | ||
| test_router_utils_common_utils.py | ||
| test_routing_read_batch.py | ||