mirror of
https://github.com/BerriAI/litellm.git
synced 2026-10-10 03:28:53 +00:00
refactor(rust-gateway): drop PR-added code comments per repo policy
Co-Authored-By: Ishaan Jaffer <155045088+ishaan-berri@users.noreply.github.com>
This commit is contained in:
parent
21a05a8dbc
commit
304501153d
1 changed files with 0 additions and 7 deletions
|
|
@ -28,17 +28,10 @@ pub(crate) const DEFAULT_FLUSH_INTERVAL_MS: u64 = 500;
|
|||
/// Provider attributed to realtime sessions in the logging payload.
|
||||
pub(crate) const DEFAULT_PROVIDER: &str = "openai";
|
||||
|
||||
/// MIME type used when an OCR upload declares none and its filename extension is
|
||||
/// unrecognized. Mirrors the Python proxy's `_build_document_from_upload`.
|
||||
pub(crate) const DEFAULT_UPLOAD_MIME_TYPE: &str = "application/octet-stream";
|
||||
|
||||
/// Upper bound on an OCR request body (JSON or multipart). Base64-encoded PDFs
|
||||
/// inflate roughly 1.33x over the raw bytes, so this stays well above the
|
||||
/// default 50MB document download cap while still rejecting absurd payloads.
|
||||
pub(crate) const MAX_OCR_REQUEST_BYTES: usize = 100 * 1024 * 1024;
|
||||
|
||||
/// Filename-extension to MIME map for OCR uploads whose transport declares no
|
||||
/// usable content type. Mirrors `litellm.ocr.main.get_mime_type`'s explicit map.
|
||||
pub(crate) const OCR_UPLOAD_MIME_BY_EXTENSION: &[(&str, &str)] = &[
|
||||
("pdf", "application/pdf"),
|
||||
("png", "image/png"),
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue