Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
32 changes: 14 additions & 18 deletions openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4148,17 +4148,15 @@ paths:

response = client.post(
"/ocr",
body={
"model": "mistral-ocr-latest",
"document": {
"type": "document_url",
"document_url": "https://example.com/document.pdf"
},
"include_image_base64": True
}
model="mistral-ocr-latest",
document={
"type": "document_url",
"document_url": "https://example.com/document.pdf"
},
include_image_base64=True
)

for page in response["pages"]:
for page in response.pages:
print(f"Page {page['index']}: {page['markdown'][:100]}")
- lang: javascript
label: Default
Expand Down Expand Up @@ -4214,17 +4212,15 @@ paths:

response = client.post(
"/ocr",
body={
"model": "mistral-ocr-latest",
"document": {
"type": "document_url",
"document_url": "https://example.com/document.pdf"
},
"include_image_base64": True
}
model="mistral-ocr-latest",
document={
"type": "document_url",
"document_url": "https://example.com/document.pdf"
},
include_image_base64=True
)

for page in response["pages"]:
for page in response.pages:
print(f"Page {page['index']}: {page['markdown'][:100]}")
- lang: javascript
label: Self-Hosted
Expand Down
Loading