From ddabc9c2e3d0b616b0d3ab85e462cc0839dcac5b Mon Sep 17 00:00:00 2001 From: Kosuke Suenaga Date: Fri, 7 Mar 2025 16:19:27 +0900 Subject: [PATCH 1/2] Fix OCR parameter naming in document.md --- docs/capabilities/document.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/capabilities/document.md b/docs/capabilities/document.md index 43b2b429..0b578c27 100644 --- a/docs/capabilities/document.md +++ b/docs/capabilities/document.md @@ -56,7 +56,7 @@ const ocrResponse = await client.ocr.process({ type: "document_url", documentUrl: "https://arxiv.org/pdf/2201.04234" }, - include_image_base64: true + includeImageBase64: true }); ``` From 94bc8d573c883e257bc8d8751126ed25c384940a Mon Sep 17 00:00:00 2001 From: Kosuke Suenaga Date: Fri, 7 Mar 2025 19:56:32 +0900 Subject: [PATCH 2/2] Update TypeScript code example for getSignedUrl method --- docs/capabilities/document.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/capabilities/document.md b/docs/capabilities/document.md index 0b578c27..0640899c 100644 --- a/docs/capabilities/document.md +++ b/docs/capabilities/document.md @@ -570,7 +570,7 @@ signed_url = client.files.get_signed_url(file_id=uploaded_pdf.id) ```typescript -const signedUrl = await mistral.files.getSignedUrl({ +const signedUrl = await client.files.getSignedUrl({ fileId: uploaded_pdf.id, }); ```