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

files changedbuild-with-claude/files

Nearest release: v2.1.304, published 6 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+11added
Lines−16removed
From line 62 where the diff opens
First seen 14 Aug 2026 this site's first read of the page
Recorded edits24to this page, all time

The whole hunk

from line 62, old and new numbered
/
lines
from line 62
6262 
6363 ```typescript TypeScript
6464 const uploaded = await client.files.upload({
65 file: await toFile(
66 fs.createReadStream("/path/to/document.pdf"),
67 undefined,
68 { type: "application/pdf" },
69 ),
65 file: await toFile(fs.createReadStream("/path/to/document.pdf"), undefined, {
66 type: "application/pdf"
67 })
7068 });
7169 console.log(uploaded.id);
7270 ```
from line 241
243241 content: [
244242 {
245243 type: "text",
246 text: "Please summarize this document for me.",
244 text: "Please summarize this document for me."
247245 },
248246 {
249247 type: "document",
250248 source: {
251249 type: "file",
252 file_id: uploaded.id,
253 },
254 },
255 ],
256 },
257 ],
250 file_id: uploaded.id
251 }
252 }
253 ]
254 }
255 ]
258256 });
259257 
260258 console.log(response);
from line 529
531529 ]
532530 });
533531 
534 const textBlock = response.content.find(
535 (block): block is Anthropic.TextBlock => block.type === "text"
536 );
532 const textBlock = response.content.find((block) => block.type === "text");
537533 console.log(textBlock?.text);
538534 ```
539535 
from line 902
906902 _, err = io.Copy(out, resp.Body)
907903 return err
908904 }
909 
910905 ```
911906 
912907 ```java Java
Feedback