citations changedbuild-with-claude/citations
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+7added
Lines−13removed
From line
423
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 423, old and new numbered
/
from line 423
423423 ```
424424
425425 ```bash CLI
426 ant messages create \
427 --model claude-opus-5 \
428 --max-tokens 1024 <<'YAML'
426 ant messages create --model claude-opus-5 --max-tokens 1024 <<'YAML'
429427 messages:
430428 - role: user
431429 content:
from line 918
920918 ```
921919
922920 ```php PHP
923 // The PHP SDK supports file_id document and image sources only through $client->beta->messages with the files beta.
924 $citedResponse = $client->beta->messages->create(
921 $citedResponse = $client->messages->create(
925922 maxTokens: 1024,
926923 messages: [
927924 [
from line 926
929926 'content' => [
930927 [
931928 'type' => 'document',
932 'source' => ['type' => 'file', 'file_id' => $fileId],
929 'source' => ['type' => 'file', 'fileID' => $fileId],
933930 'title' => 'Document Title',
934931 'context' => 'Context about the document that will not be cited from',
935932 'citations' => ['enabled' => true],
from line 936
939936 ],
940937 ],
941938 model: 'claude-opus-5',
942 betas: ['files-api-2025-04-14'],
943939 );
944940
945 print_r($citedResponse);
941 echo $citedResponse;
946942 ```
947943
948944 ```ruby Ruby
from line 1739
17431739 ```
17441740
17451741 ```php PHP
1746 // The PHP SDK supports file_id document and image sources only through $client->beta->messages with the files beta.
1747 $citedResponse = $client->beta->messages->create(
1742 $citedResponse = $client->messages->create(
17481743 maxTokens: 1024,
17491744 messages: [
17501745 [
from line 1747
17521747 'content' => [
17531748 [
17541749 'type' => 'document',
1755 'source' => ['type' => 'file', 'file_id' => $fileId],
1750 'source' => ['type' => 'file', 'fileID' => $fileId],
17561751 'title' => 'Document Title',
17571752 'context' => 'Context about the document that will not be cited from',
17581753 'citations' => ['enabled' => true],
from line 1757
17621757 ],
17631758 ],
17641759 model: 'claude-opus-5',
1765 betas: ['files-api-2025-04-14'],
17661760 );
17671761
1768 print_r($citedResponse);
1762 echo $citedResponse;
17691763 ```
17701764
17711765 ```ruby Ruby
No line in this hunk matches that.