working-with-messages changedbuild-with-claude/working-with-messages
Nearest release: v2.1.239, published 2 hours before this site recorded the change. Shown because the two are within 24 hours of each other. Nothing here says the release caused the edit.
Recorded here
Lines+2added
Lines−2removed
From line
592
where the diff opens
First seen
14 Aug 2026
this site's first read of the page
Recorded edits19to this page, all time
The whole hunk
from line 592, old and new numbered
/
from line 592
592592
593593 ```python Python
594594 import base64
595 import httpx
595 import httpx2
596596
597597 # Option 1: Base64-encoded image
598598 image_url = "https://platform.claude.com/docs/images/vision-example.jpg"
599599 image_media_type = "image/jpeg"
600 image_data = base64.standard_b64encode(httpx.get(image_url).content).decode("utf-8")
600 image_data = base64.standard_b64encode(httpx2.get(image_url).content).decode("utf-8")
601601
602602 message = anthropic.Anthropic().messages.create(
603603 model="claude-opus-5",
No line in this hunk matches that.