beta-headers changedapi/beta-headers
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+6added
Lines−6removed
From line
114
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 114, old and new numbered
/
from line 114
114114 AnthropicClient client = AnthropicOkHttpClient.fromEnv();
115115
116116 MessageCreateParams params = MessageCreateParams.builder()
117 .model(Model.CLAUDE_OPUS_5_5)
118 .maxTokens(1024)
119 .addUserMessage("Hello, Claude")
120 .addBeta(AnthropicBeta.CONTEXT_MANAGEMENT_2025_06_27)
121 .build();
117 .model(Model.CLAUDE_OPUS_5_5)
118 .maxTokens(1024)
119 .addUserMessage("Hello, Claude")
120 .addBeta(AnthropicBeta.CONTEXT_MANAGEMENT_2025_06_27)
121 .build();
122122
123123 BetaMessage message = client.beta().messages().create(params);
124124 System.out.println(message.content());
from line 130
130130 $message = $client->beta->messages->create(
131131 maxTokens: 1024,
132132 messages: [['role' => 'user', 'content' => 'Hello, Claude']],
133 model: 'claude-opus-5-5',
133 model: Model::CLAUDE_OPUS_5_5,
134134 betas: ['context-management-2025-06-27'],
135135 );
136136
No line in this hunk matches that.