From 1f30a9628082e43d6bd7a37ae76ad24936669d56 Mon Sep 17 00:00:00 2001 From: Alex Ghiculescu Date: Thu, 1 May 2025 10:16:51 +1000 Subject: [PATCH] Fix Vision API docs To match https://docs.anthropic.com/en/docs/build-with-claude/vision#base64-encoded-image-example --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 7e65007..25ede59 100644 --- a/README.md +++ b/README.md @@ -240,7 +240,7 @@ response = client.messages( {"role": "user", "content": [ { "type":"image","source": - {"type":"base64","media_type":"image/png", imgbase64 } + {"type":"base64","media_type":"image/png", "data": imgbase64 } }, {"type":"text","text":"What is this"} ]