From 3b9fc16f6b77e746b36a8f9f49f55ae61f76157e Mon Sep 17 00:00:00 2001 From: Yujong Lee Date: Sat, 12 Sep 2026 07:29:42 -0700 Subject: [PATCH] refactor(ocr): remove unused rust bridge capability --- litellm/llms/base_llm/ocr/transformation.py | 4 ---- litellm/llms/cohere/ocr/transformation.py | 3 --- 2 files changed, 7 deletions(-) diff --git a/litellm/llms/base_llm/ocr/transformation.py b/litellm/llms/base_llm/ocr/transformation.py index 8111f9a194a..20455d92346 100644 --- a/litellm/llms/base_llm/ocr/transformation.py +++ b/litellm/llms/base_llm/ocr/transformation.py @@ -144,10 +144,6 @@ class BaseOCRConfig: """ return None - def supports_rust_bridge(self) -> bool: - """Whether the Rust OCR bridge may serve this config when it is enabled for the provider.""" - return True - def get_health_check_document(self) -> DocumentType: return { # mutable-ok: litellm.aocr rejects any document that is not a dict "type": "document_url", diff --git a/litellm/llms/cohere/ocr/transformation.py b/litellm/llms/cohere/ocr/transformation.py index dd15d5360a6..b55ff4a3cbf 100644 --- a/litellm/llms/cohere/ocr/transformation.py +++ b/litellm/llms/cohere/ocr/transformation.py @@ -144,9 +144,6 @@ class CohereParseConfig(BaseOCRConfig): def get_api_key_env_var(self) -> str | None: return COHERE_API_KEY_ENV_VAR - def supports_rust_bridge(self) -> bool: - return False - def get_health_check_document(self) -> DocumentType: return { # mutable-ok: litellm.aocr rejects any document that is not a dict "type": "image_url",