mirror of
https://github.com/Piebald-AI/claude-code-system-prompts.git
synced 2026-11-20 08:01:53 +08:00
681 B
681 B
Files API - PHP
Files API
Out of beta. In current SDKs
$client->beta->fileshas breaking shape changes from previous versions, matching the stable$client->files- migrate per the Files API row inshared/live-sources.md. Example below predates this.
$file = $client->beta->files->upload(
file: fopen('upload_me.txt', 'r'),
betas: ['files-api-2025-04-14'],
);
// Reference $file->id as a file content block on ->beta->messages->create().