mirror of
https://github.com/BerriAI/litellm.git
synced 2026-09-13 23:11:40 +00:00
Drop MistralOCRConfig from the OCR provider config resolver
This commit is contained in:
parent
1af1a4fd6d
commit
4f56968835
1 changed files with 3 additions and 9 deletions
|
|
@ -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(
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue