diff --git a/integrations/llms/azure-foundry.mdx b/integrations/llms/azure-foundry.mdx index 513324b7..39502c95 100644 --- a/integrations/llms/azure-foundry.mdx +++ b/integrations/llms/azure-foundry.mdx @@ -993,18 +993,16 @@ client = Portkey( ) result = client.post( - "/v1/ocr", - body={ - "model": "mistral-ocr-4-0", - "document": { - "type": "document_url", - "document_url": "data:application/pdf;base64," - }, - "include_image_base64": True - } + "/ocr", + model="mistral-ocr-4-0", + document={ + "type": "document_url", + "document_url": "data:application/pdf;base64," + }, + include_image_base64=True ) -for page in result["pages"]: +for page in result.pages: print(f"Page {page['index']}: {page['markdown'][:100]}") ``` diff --git a/integrations/llms/mistral-ai.mdx b/integrations/llms/mistral-ai.mdx index b8a7f56f..cf5774d1 100644 --- a/integrations/llms/mistral-ai.mdx +++ b/integrations/llms/mistral-ai.mdx @@ -379,18 +379,16 @@ portkey = Portkey( ) response = portkey.post( - "/v1/ocr", - body={ - "model": "mistral-ocr-latest", - "document": { - "type": "document_url", - "document_url": "https://example.com/document.pdf" - }, - "include_image_base64": True - } + "/ocr", + 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]}") ```