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

citations changedbuild-with-claude/citations

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

The whole hunk

from line 11, old and new numbered
/
lines
from line 11
1111 Claude API: ga
1212 Claude Platform on AWS: ga
1313 Amazon Bedrock: ga
14 Google Cloud: ga
14 Claude Models on Google Cloud (Google managed): ga
1515 Microsoft Foundry: ga
1616---
1717 
from line 217
217217 .source(source)
218218 .title("My Document")
219219 .context("This is a trustworthy document.")
220 .citations(CitationsConfigParam.builder().enabled(true).build())
220 .citations(CitationsConfigParam.builder()
221 .enabled(true)
222 .build())
221223 .build();
222224 
223225 TextBlockParam textBlockParam = TextBlockParam.builder()
from line 268
266268 ],
267269 ],
268270 ],
269 model: 'claude-opus-5-5',
271 model: Model::CLAUDE_OPUS_5_5,
270272 );
271273 
272274 echo json_encode($response, JSON_PRETTY_PRINT);
from line 598
596598 + " ... ".repeat(1000); // Minimum cacheable length
597599 
598600 DocumentBlockParam documentParam = DocumentBlockParam.builder()
599 .source(PlainTextSource.builder().data(longDocument).build())
600 .citations(CitationsConfigParam.builder().enabled(true).build())
601 .source(PlainTextSource.builder()
602 .data(longDocument)
603 .build())
604 .citations(CitationsConfigParam.builder()
605 .enabled(true)
606 .build())
601607 .cacheControl(CacheControlEphemeral.builder().build()) // Cache the document content
602608 .build();
603609 
from line 657
651657 ],
652658 ],
653659 ],
654 model: 'claude-opus-5-5',
660 model: Model::CLAUDE_OPUS_5_5,
655661 );
656662 
657663 echo json_encode($response, JSON_PRETTY_PRINT);
from line 913
907913 .fileSource(fileId)
908914 .title("Document Title")
909915 .context("Context about the document that will not be cited from")
910 .citations(CitationsConfigParam.builder().enabled(true).build())
916 .citations(CitationsConfigParam.builder()
917 .enabled(true)
918 .build())
911919 .build()),
912920 ContentBlockParam.ofText(TextBlockParam.builder()
913921 .text("Summarize this document.")
from line 1201
11931201 String pdfBase64 = Base64.getEncoder().encodeToString(pdfBytes);
11941202 
11951203 DocumentBlockParam documentParam = DocumentBlockParam.builder()
1196 .source(Base64PdfSource.builder().data(pdfBase64).build())
1204 .source(Base64PdfSource.builder()
1205 .data(pdfBase64)
1206 .build())
11971207 .title("Document Title")
11981208 .context("Context about the document that will not be cited from")
1199 .citations(CitationsConfigParam.builder().enabled(true).build())
1209 .citations(CitationsConfigParam.builder()
1210 .enabled(true)
1211 .build())
12001212 .build();
12011213 
12021214 MessageCreateParams params = MessageCreateParams.builder()
from line 1217
12051217 .addUserMessageOfContentBlockParams(
12061218 List.of(
12071219 ContentBlockParam.ofDocument(documentParam),
1208 ContentBlockParam.ofText(TextBlockParam.builder().text("Summarize this document.").build())
1220 ContentBlockParam.ofText(TextBlockParam.builder()
1221 .text("Summarize this document.")
1222 .build())
12091223 )
12101224 )
12111225 .build();
from line 1487
14731487 .build())
14741488 .title("Document Title")
14751489 .context("Context about the document that will not be cited from")
1476 .citations(CitationsConfigParam.builder().enabled(true).build())
1490 .citations(CitationsConfigParam.builder()
1491 .enabled(true)
1492 .build())
14771493 .build();
14781494 
14791495 MessageCreateParams params = MessageCreateParams.builder()
from line 1498
14821498 .addUserMessageOfContentBlockParams(
14831499 List.of(
14841500 ContentBlockParam.ofDocument(documentParam),
1485 ContentBlockParam.ofText(TextBlockParam.builder().text("Summarize this document.").build())
1501 ContentBlockParam.ofText(TextBlockParam.builder()
1502 .text("Summarize this document.")
1503 .build())
14861504 )
14871505 )
14881506 .build();
from line 1741
17231741 .fileSource(fileId)
17241742 .title("Document Title")
17251743 .context("Context about the document that will not be cited from")
1726 .citations(CitationsConfigParam.builder().enabled(true).build())
1744 .citations(CitationsConfigParam.builder()
1745 .enabled(true)
1746 .build())
17271747 .build()),
17281748 ContentBlockParam.ofText(TextBlockParam.builder()
17291749 .text("Summarize this document.")
from line 2032
20122032 .source(ContentBlockSource.builder()
20132033 .contentOfBlockSource(
20142034 List.of(
2015 ContentBlockSourceContent.ofText(TextBlockParam.builder().text("First chunk").build()),
2016 ContentBlockSourceContent.ofText(TextBlockParam.builder().text("Second chunk").build())
2035 ContentBlockSourceContent.ofText(TextBlockParam.builder()
2036 .text("First chunk")
2037 .build()),
2038 ContentBlockSourceContent.ofText(TextBlockParam.builder()
2039 .text("Second chunk")
2040 .build())
20172041 )
20182042 )
20192043 .build())
20202044 .title("Document Title")
20212045 .context("Context about the document that will not be cited from")
2022 .citations(CitationsConfigParam.builder().enabled(true).build())
2046 .citations(CitationsConfigParam.builder()
2047 .enabled(true)
2048 .build())
20232049 .build();
20242050 
20252051 MessageCreateParams params = MessageCreateParams.builder()
from line 2054
20282054 .addUserMessageOfContentBlockParams(
20292055 List.of(
20302056 ContentBlockParam.ofDocument(documentParam),
2031 ContentBlockParam.ofText(TextBlockParam.builder().text("Summarize this document.").build())
2057 ContentBlockParam.ofText(TextBlockParam.builder()
2058 .text("Summarize this document.")
2059 .build())
20322060 )
20332061 )
20342062 .build();
from line 2094
20662094 ],
20672095 ],
20682096 ],
2069 model: 'claude-opus-5-5',
2097 model: Model::CLAUDE_OPUS_5_5,
20702098 );
20712099 
20722100 echo json_encode($response, JSON_PRETTY_PRINT);
Feedback