Drop MistralOCRConfig from the OCR provider config resolver

This commit is contained in:
Ishaan Jaffer 2026-06-16 20:47:27 -07:00
parent 1af1a4fd6d
commit 4f56968835
No known key found for this signature in database

View file

@ -307,7 +307,6 @@ if TYPE_CHECKING:
)
from litellm.llms.bedrock.common_utils import BedrockModelInfo
from litellm.llms.cohere.common_utils import CohereModelInfo
from litellm.llms.mistral.ocr.transformation import MistralOCRConfig
# Type stubs for lazy-loaded functions and classes
from litellm.litellm_core_utils.cached_imports import (
@ -9669,14 +9668,9 @@ class ProviderConfigManager:
return ReductoParseLegacyConfig()
return None
MistralOCRConfig = getattr(sys.modules[__name__], "MistralOCRConfig")
PROVIDER_TO_CONFIG_MAP = {
litellm.LlmProviders.MISTRAL: MistralOCRConfig,
}
config_class = PROVIDER_TO_CONFIG_MAP.get(provider, None)
if config_class is None:
return None
return config_class()
# Mistral OCR is served by the native litellm_rust engine, routed in
# litellm/ocr/main.py before reaching this resolver
return None
@staticmethod
def get_provider_search_config(