mirror of
https://github.com/BerriAI/litellm.git
synced 2026-10-06 02:48:13 +00:00
fix(ocr): use defensive getattr in load_rust_ocr
This commit is contained in:
parent
6ed1c6b420
commit
3f5186f9af
1 changed files with 1 additions and 1 deletions
|
|
@ -97,7 +97,7 @@ def load_rust_ocr() -> RustOcr | None:
|
|||
import litellm_python_bridge
|
||||
except ImportError:
|
||||
return None
|
||||
return cast(RustOcr, litellm_python_bridge.ocr)
|
||||
return cast(RustOcr, getattr(litellm_python_bridge, "ocr", None))
|
||||
|
||||
|
||||
def load_rust_aocr() -> RustAocr | None:
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue