Simon Willison on Nostr: I upgraded my llm-anthropic plugin to use their new API feature where you can pass ...
I upgraded my llm-anthropic plugin to use their new API feature where you can pass URLs to images and PDFs (as opposed to embedding them as base64 in JSON) and in testing it got a great result from Claude 3.7 Sonnet against this 1900 newspaper scan from the Library of Congress
https://simonwillison.net/2025/Mar/1/llm-anthropic/
Published at
2025-03-01 01:29:32Event JSON
{
"id": "8d59bdcd1d596565b760827d961988f1696aa1b0592daffa8c4c57d5de3b3a73",
"pubkey": "8b0be93ed69c30e9a68159fd384fd8308ce4bbf16c39e840e0803dcb6c08720e",
"created_at": 1740792572,
"kind": 1,
"tags": [
[
"imeta",
"url https://cdn.masto.host/fedisimonwillisonnet/media_attachments/files/114/084/581/599/098/227/original/75191c821942d6e4.jpeg",
"m image/jpeg",
"dim 1257x605",
"blurhash U8MQ*J%M-;%M_3ofxuofxuofWBWB~qxuWBay"
],
[
"proxy",
"https://fedi.simonwillison.net/users/simon/statuses/114084582060388226",
"activitypub"
]
],
"content": "I upgraded my llm-anthropic plugin to use their new API feature where you can pass URLs to images and PDFs (as opposed to embedding them as base64 in JSON) and in testing it got a great result from Claude 3.7 Sonnet against this 1900 newspaper scan from the Library of Congress\nhttps://simonwillison.net/2025/Mar/1/llm-anthropic/\n\nhttps://cdn.masto.host/fedisimonwillisonnet/media_attachments/files/114/084/581/599/098/227/original/75191c821942d6e4.jpeg",
"sig": "7455655265dd75affa4fa5e989a003959e8124f35e40202e4a22d4949bd86dd234e97a238810cc959f496dd83903ea52c232097707aa6870e705cc81c04d295a"
}