mirror of
https://github.com/BerriAI/litellm.git
synced 2026-10-09 03:18:44 +00:00
ocr: wrap rust bridge dict into OCRResponse at the call site
This commit is contained in:
parent
718b1d550c
commit
17791a2174
1 changed files with 3 additions and 1 deletions
|
|
@ -268,7 +268,9 @@ def ocr(
|
|||
rust_bridge = importlib.import_module("litellm.ocr.rust_bridge")
|
||||
|
||||
if custom_llm_provider == "mistral" and rust_bridge.rust_ocr_enabled():
|
||||
return rust_bridge.rust_ocr(model, document, api_key, api_base, kwargs)
|
||||
return OCRResponse(
|
||||
**rust_bridge.rust_ocr(model, document, api_key, api_base, kwargs)
|
||||
)
|
||||
|
||||
# Get provider config
|
||||
ocr_provider_config: Optional[BaseOCRConfig] = (
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue