Follow Discord
Sweep 22 Oct 2026 · 04:32Z Build v2.1.308 527 read Stable v2.1.308 Latest v2.1.308 Next v2.1.308 Feeds RSS JSON llms.txt llms-full.txt Unofficial
One change · api

pdf-support changedbuild-with-claude/pdf-support

Nearest release: v2.1.307, published an hour 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+8added
Lines−11removed
From line 411 where the diff opens
First seen 14 Aug 2026 this site's first read of the page
Recorded edits14to this page, all time

The whole hunk

from line 411, old and new numbered
/
lines
from line 411
411411 ```
412412 
413413 ```bash CLI
414 ant messages create \
415 --model claude-opus-5-5 \
416 --max-tokens 1024 <<'YAML'
414 ant messages create --model claude-opus-5-5 --max-tokens 1024 <<'YAML'
417415 messages:
418416 - role: user
419417 content:
from line 475
477475 
478476 // Method 2: Load from a local file
479477 // import { readFile } from "node:fs/promises";
480 // const pdfBase64 = (await readFile('document.pdf')).toString('base64');
478 // const pdfBase64 = (await readFile("document.pdf")).toString("base64");
481479 
482480 // Send the API request with base64-encoded PDF
483481 const anthropic = new Anthropic();
from line 679
681679 # Send to Claude using base64 encoding
682680 anthropic = Anthropic::Client.new
683681 message = anthropic.messages.create(
684 model: "claude-opus-5-5",
682 model: Anthropic::Model::CLAUDE_OPUS_5_5,
685683 max_tokens: 1024,
686684 messages: [
687685 {
from line 742
744742 
745743 ```bash CLI
746744 # First, upload your PDF to the Files API
747 ant files upload \
748 --file ./document.pdf
745 ant files upload --file ./document.pdf
749746 
750747 # Then use the file_id from the upload response in your message
751748 ant messages create <<YAML
from line 982
985982 
986983 # Use the uploaded file in a message
987984 message = anthropic.messages.create(
988 model: "claude-opus-5-5",
985 model: Anthropic::Model::CLAUDE_OPUS_5_5,
989986 max_tokens: 1024,
990987 messages: [
991988 {
from line 1341
13441341 anthropic = Anthropic::Client.new
13451342 
13461343 message = anthropic.messages.create(
1347 model: "claude-opus-5-5",
1344 model: Anthropic::Model::CLAUDE_OPUS_5_5,
13481345 max_tokens: 1024,
13491346 messages: [
13501347 {
from line 1888
18911888 {
18921889 custom_id: "my-first-request",
18931890 params: {
1894 model: "claude-opus-5-5",
1891 model: Anthropic::Model::CLAUDE_OPUS_5_5,
18951892 max_tokens: 1024,
18961893 messages: [
18971894 {
from line 1914
19171914 {
19181915 custom_id: "my-second-request",
19191916 params: {
1920 model: "claude-opus-5-5",
1917 model: Anthropic::Model::CLAUDE_OPUS_5_5,
19211918 max_tokens: 1024,
19221919 messages: [
19231920 {
Feedback