streaming changedbuild-with-claude/streaming
Nearest release: v2.1.307, published an hour 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
126
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 126, old and new numbered
/
from line 126
126126 client = Anthropic::Client.new
127127
128128 stream = client.messages.stream(
129 model: "claude-opus-5-5",
129 model: Anthropic::Model::CLAUDE_OPUS_5_5,
130130 max_tokens: 1024,
131131 messages: [{ role: "user", content: "Hello" }]
132132 )
from line 141
141141
142142<CodeGroup exclude="shell:cURL">
143143 ```bash CLI
144 # The ant CLI's --stream flag emits one event per line and does not
144 # The ant CLI's --stream flag emits one event on each line and does not
145145 # accumulate into a final Message. For long generations, stream the
146146 # raw events:
147147 ant messages create --stream --format jsonl <<'YAML'
from line 273
273273 client = Anthropic::Client.new
274274
275275 message = client.messages.stream(
276 model: "claude-opus-5-5",
276 model: Anthropic::Model::CLAUDE_OPUS_5_5,
277277 max_tokens: 128000,
278278 messages: [{ role: "user", content: "Write a detailed analysis..." }]
279279 ).accumulated_message
from line 521
521521 client = Anthropic::Client.new
522522
523523 stream = client.messages.stream(
524 model: "claude-opus-5-5",
524 model: Anthropic::Model::CLAUDE_OPUS_5_5,
525525 messages: [{ role: "user", content: "Hello" }],
526526 max_tokens: 256
527527 )
from line 859
859859 ]
860860
861861 stream = client.messages.stream(
862 model: "claude-opus-5",
862 model: Anthropic::Model::CLAUDE_OPUS_5,
863863 max_tokens: 1024,
864864 tools: tools,
865865 tool_choice: { type: "any" },
from line 1375
13751375 client = Anthropic::Client.new
13761376
13771377 stream = client.messages.stream(
1378 model: :"claude-opus-5-5",
1378 model: Anthropic::Model::CLAUDE_OPUS_5_5,
13791379 max_tokens: 1024,
13801380 tools: [
13811381 {
No line in this hunk matches that.