mirror of
https://github.com/BerriAI/litellm.git
synced 2026-09-09 22:31:41 +00:00
feat: pass ocr response parameters to providers
This commit is contained in:
parent
774e5a7e5e
commit
cad0971095
1 changed files with 10 additions and 2 deletions
|
|
@ -44,7 +44,11 @@ pub(crate) async fn execute_ocr_provider_call(request: ProviderOcrRequest) -> Re
|
|||
.await?;
|
||||
return Ok(request
|
||||
.config
|
||||
.transform_ocr_response(&request.model, response_json)?
|
||||
.transform_ocr_response_with_params(
|
||||
&request.model,
|
||||
response_json,
|
||||
&request.optional_params,
|
||||
)?
|
||||
.into_json());
|
||||
}
|
||||
|
||||
|
|
@ -65,6 +69,10 @@ pub(crate) async fn execute_ocr_provider_call(request: ProviderOcrRequest) -> Re
|
|||
|
||||
Ok(request
|
||||
.config
|
||||
.transform_ocr_response(&request.model, response_json)?
|
||||
.transform_ocr_response_with_params(
|
||||
&request.model,
|
||||
response_json,
|
||||
&request.optional_params,
|
||||
)?
|
||||
.into_json())
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue