mirror of
https://github.com/BerriAI/litellm.git
synced 2026-09-07 08:26:10 +00:00
test: retain azure ocr URL coverage
This commit is contained in:
parent
978f314221
commit
d37eb2ce18
1 changed files with 6 additions and 2 deletions
|
|
@ -583,6 +583,10 @@ mod tests {
|
|||
.data;
|
||||
assert_eq!(body["model"], "pixtral-12b-2409");
|
||||
assert_eq!(body["include_image_base64"], true);
|
||||
assert_eq!(
|
||||
body["document"]["document_url"],
|
||||
"data:application/pdf;base64,abc"
|
||||
);
|
||||
}
|
||||
|
||||
#[test]
|
||||
|
|
@ -821,8 +825,8 @@ mod tests {
|
|||
#[test]
|
||||
fn document_intelligence_url_combines_pages_and_features() {
|
||||
let url = complete_document_intelligence_url(
|
||||
Some("https://example.cognitiveservices.azure.com"),
|
||||
"prebuilt-layout",
|
||||
Some("https://example.cognitiveservices.azure.com/"),
|
||||
"azure_ai/doc-intelligence/prebuilt-layout",
|
||||
&mapped_params(json!({"pages": [0, 1, 2], "features": ["keyValuePairs", "languages"]})),
|
||||
&|_| None,
|
||||
)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue