mirror of
https://github.com/BerriAI/litellm.git
synced 2026-09-09 22:31:41 +00:00
fix: initialize ocr response native fields
This commit is contained in:
parent
8db49ffae9
commit
ba4b644243
1 changed files with 7 additions and 1 deletions
|
|
@ -130,6 +130,10 @@ impl OcrProviderConfig for MistralOcrConfig {
|
|||
model,
|
||||
document_annotation,
|
||||
usage_info,
|
||||
content: None,
|
||||
tables: None,
|
||||
key_value_pairs: None,
|
||||
provider_native_response: None,
|
||||
object: "ocr".to_string(),
|
||||
})
|
||||
}
|
||||
|
|
@ -158,7 +162,9 @@ pub fn supported_ocr_params() -> &'static [&'static str] {
|
|||
}
|
||||
|
||||
pub fn map_ocr_params(non_default_params: &Map<String, Value>) -> Map<String, Value> {
|
||||
MISTRAL_OCR_CONFIG.map_ocr_params(non_default_params)
|
||||
MISTRAL_OCR_CONFIG
|
||||
.map_ocr_params(non_default_params)
|
||||
.expect("default OCR parameter mapping cannot fail")
|
||||
}
|
||||
|
||||
pub fn transform_ocr_request(
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue