From abea69352a102cc5f50980e65ce54ff53768509c Mon Sep 17 00:00:00 2001 From: Krrish Dholakia Date: Thu, 3 Apr 2025 22:12:31 -0700 Subject: [PATCH] docs(document_understanding.md): Fix https://github.com/BerriAI/litellm/issues/9704 --- .../docs/completion/document_understanding.md | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/docs/my-website/docs/completion/document_understanding.md b/docs/my-website/docs/completion/document_understanding.md index c101aa1aef5..f1a78a659f1 100644 --- a/docs/my-website/docs/completion/document_understanding.md +++ b/docs/my-website/docs/completion/document_understanding.md @@ -80,11 +80,13 @@ curl -X POST 'http://0.0.0.0:4000/chat/completions' \ -d '{ "model": "bedrock-model", "messages": [ - {"role": "user", "content": {"type": "text", "text": "What's this file about?"}}, - { - "type": "image_url", - "image_url": "https://www.w3.org/WAI/ER/tests/xhtml/testfiles/resources/pdf/dummy.pdf", - } + {"role": "user", "content": [ + {"type": "text", "text": "What's this file about?"}, + { + "type": "image_url", + "image_url": "https://www.w3.org/WAI/ER/tests/xhtml/testfiles/resources/pdf/dummy.pdf", + } + ]}, ] }' ```