mirror of
https://github.com/BerriAI/litellm.git
synced 2026-10-09 03:18:44 +00:00
ocr: guard OCRResponse under TYPE_CHECKING so the annotation resolves
This commit is contained in:
parent
3188f93be0
commit
88a9e6ed57
1 changed files with 4 additions and 1 deletions
|
|
@ -6,7 +6,10 @@ then routes supported Mistral calls through the compiled ``litellm_python_bridge
|
|||
extension, which performs the whole OCR call (URL, headers, HTTP, parse) in Rust.
|
||||
"""
|
||||
|
||||
from typing import Any, Dict, Optional
|
||||
from typing import TYPE_CHECKING, Any, Dict, Optional
|
||||
|
||||
if TYPE_CHECKING:
|
||||
from litellm.llms.base_llm.ocr.transformation import OCRResponse
|
||||
|
||||
_RUST_OCR_ENABLED = False
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue