mirror of
https://github.com/BerriAI/litellm.git
synced 2026-10-09 03:18:44 +00:00
Potential fix for pull request finding 'CodeQL / Cyclic import'
Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
This commit is contained in:
parent
bbbb9ededb
commit
c9b712c823
1 changed files with 1 additions and 6 deletions
|
|
@ -8,11 +8,6 @@ extension, which performs the whole OCR call (URL, headers, HTTP, parse) in Rust
|
|||
|
||||
from __future__ import annotations
|
||||
|
||||
from typing import TYPE_CHECKING
|
||||
|
||||
if TYPE_CHECKING:
|
||||
from litellm.llms.base_llm.ocr.transformation import OCRResponse
|
||||
|
||||
_RUST_OCR_ENABLED = False
|
||||
|
||||
|
||||
|
|
@ -33,7 +28,7 @@ def rust_ocr(
|
|||
api_key: str | None,
|
||||
api_base: str | None,
|
||||
optional_params: dict,
|
||||
) -> OCRResponse:
|
||||
) -> "OCRResponse":
|
||||
"""Run a Mistral OCR call end-to-end in Rust and wrap the result as ``OCRResponse``."""
|
||||
import litellm_python_bridge
|
||||
from litellm.llms.base_llm.ocr.transformation import OCRResponse
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue