mirror of
https://github.com/BerriAI/litellm.git
synced 2026-09-12 23:01:41 +00:00
docs: clarify OCR provider transform contract
This commit is contained in:
parent
a9a1af607d
commit
463148d6a9
1 changed files with 6 additions and 1 deletions
|
|
@ -4,7 +4,12 @@ use crate::CoreResult;
|
|||
|
||||
use super::types::{OcrRequestData, OcrResponseData};
|
||||
|
||||
pub trait OcrProviderConfig: Sync {
|
||||
/// Provider-specific OCR transforms.
|
||||
///
|
||||
/// Implementations should stay pure and non-blocking: map supported params,
|
||||
/// build the provider request body, and normalize the provider response. The
|
||||
/// route layer owns async HTTP I/O.
|
||||
pub trait OcrProviderConfig: Send + Sync {
|
||||
fn supported_ocr_params(&self) -> &'static [&'static str];
|
||||
|
||||
fn map_ocr_params(&self, non_default_params: &Map<String, Value>) -> Map<String, Value> {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue