mirror of
https://github.com/BerriAI/litellm.git
synced 2026-09-21 00:21:49 +00:00
Delete litellm/ocr/input.py and the native _ocr_file_document, _ocr_upload_document and _ocr_mime_type helpers. File documents now project to a typed OcrDocumentInput and the core lifecycle reads local paths, encodes bytes and asks the host to read file-like objects through a ReadDocument operation before the provider request Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
13 lines
239 B
Rust
13 lines
239 B
Rust
mod callbacks;
|
|
mod document;
|
|
mod errors;
|
|
mod lifecycle;
|
|
mod project;
|
|
mod value;
|
|
|
|
use pyo3::prelude::*;
|
|
|
|
pub(super) fn register(module: &Bound<'_, PyModule>) -> PyResult<()> {
|
|
value::register(module)?;
|
|
lifecycle::register(module)
|
|
}
|