One change
citations
build-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.
build-with-claude/citations Changed · +7 / -13 lines
from line 423
``` ```bash CLI - ant messages create \ - --model claude-opus-5 \ - --max-tokens 1024 <<'YAML' + ant messages create --model claude-opus-5 --max-tokens 1024 <<'YAML' messages: - role: user content:
from line 918
``` ```php PHP - // The PHP SDK supports file_id document and image sources only through $client->beta->messages with the files beta. - $citedResponse = $client->beta->messages->create( + $citedResponse = $client->messages->create( maxTokens: 1024, messages: [ [
from line 926
'content' => [ [ 'type' => 'document', - 'source' => ['type' => 'file', 'file_id' => $fileId], + 'source' => ['type' => 'file', 'fileID' => $fileId], 'title' => 'Document Title', 'context' => 'Context about the document that will not be cited from', 'citations' => ['enabled' => true],
from line 936
], ], model: 'claude-opus-5', - betas: ['files-api-2025-04-14'], ); - print_r($citedResponse); + echo $citedResponse; ``` ```ruby Ruby
from line 1739
``` ```php PHP - // The PHP SDK supports file_id document and image sources only through $client->beta->messages with the files beta. - $citedResponse = $client->beta->messages->create( + $citedResponse = $client->messages->create( maxTokens: 1024, messages: [ [
from line 1747
'content' => [ [ 'type' => 'document', - 'source' => ['type' => 'file', 'file_id' => $fileId], + 'source' => ['type' => 'file', 'fileID' => $fileId], 'title' => 'Document Title', 'context' => 'Context about the document that will not be cited from', 'citations' => ['enabled' => true],
from line 1757
], ], model: 'claude-opus-5', - betas: ['files-api-2025-04-14'], ); - print_r($citedResponse); + echo $citedResponse; ``` ```ruby Ruby