feat: preserve azure ocr native response fields

This commit is contained in:
Ishaan Jaff 2026-09-02 20:14:42 -07:00
parent c8b0d0ff1e
commit 8db49ffae9
No known key found for this signature in database

View file

@ -13,6 +13,10 @@ pub struct OcrResponseData {
pub model: String,
pub document_annotation: Option<Value>,
pub usage_info: Option<Value>,
pub content: Option<Value>,
pub tables: Option<Value>,
pub key_value_pairs: Option<Value>,
pub provider_native_response: Option<Value>,
pub object: String,
}
@ -23,6 +27,10 @@ impl OcrResponseData {
"model": self.model,
"document_annotation": self.document_annotation,
"usage_info": self.usage_info,
"content": self.content,
"tables": self.tables,
"keyValuePairs": self.key_value_pairs,
"provider_native_response": self.provider_native_response,
"object": self.object,
})
}