feat: pass ocr response parameters to providers

This commit is contained in:
Ishaan Jaff 2026-09-02 20:14:55 -07:00
parent 774e5a7e5e
commit cad0971095
No known key found for this signature in database

View file

@ -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())
}