Follow Discord
Sweep 22 Oct 2026 · 04:32Z Build v2.1.308 527 read Stable v2.1.308 Latest v2.1.308 Next v2.1.308 Feeds RSS JSON llms.txt llms-full.txt Unofficial
One change · api

handling-stop-reasons changedbuild-with-claude/handling-stop-reasons

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+8added
Lines−8removed
From line 191 where the diff opens
First seen 14 Aug 2026 this site's first read of the page
Recorded edits19to this page, all time

The whole hunk

from line 191, old and new numbered
/
lines
from line 191
191191 client = Anthropic::Client.new
192192 
193193 response = client.messages.create(
194 model: "claude-opus-5-5",
194 model: Anthropic::Model::CLAUDE_OPUS_5_5,
195195 max_tokens: 1024,
196196 messages: [{ role: "user", content: "Hello!" }]
197197 )
from line 862
862862 
863863 # Request with limited tokens
864864 response = client.messages.create(
865 model: "claude-opus-5-5",
865 model: Anthropic::Model::CLAUDE_OPUS_5_5,
866866 max_tokens: 10,
867867 messages: [{ role: "user", content: "Explain quantum physics" }]
868868 )
from line 1015
10151015 
10161016 ```ruby Ruby
10171017 response = client.messages.create(
1018 model: "claude-opus-5-5",
1018 model: Anthropic::Model::CLAUDE_OPUS_5_5,
10191019 max_tokens: 1024,
10201020 messages: messages,
10211021 tools: tools
from line 1025
10251025 last_block = response.content.last
10261026 if last_block.type == :tool_use
10271027 response = client.messages.create(
1028 model: "claude-opus-5-5",
1028 model: Anthropic::Model::CLAUDE_OPUS_5_5,
10291029 max_tokens: 4096,
10301030 messages: messages,
10311031 tools: tools
from line 1164
11641164 client = Anthropic::Client.new
11651165 
11661166 response = client.messages.create(
1167 model: "claude-opus-5-5",
1167 model: Anthropic::Model::CLAUDE_OPUS_5_5,
11681168 max_tokens: 1024,
11691169 stop_sequences: ["END", "STOP"],
11701170 messages: [{ role: "user", content: "Generate text until you say END" }]
from line 1872
18721872 client = Anthropic::Client.new
18731873 
18741874 response = client.messages.create(
1875 model: "claude-opus-5-5",
1875 model: Anthropic::Model::CLAUDE_OPUS_5_5,
18761876 max_tokens: 1024,
18771877 messages: [{ role: "user", content: "[Unsafe request]" }]
18781878 )
from line 2777
27772777 
27782778 begin
27792779 response = client.messages.create(
2780 model: "claude-opus-5-5",
2780 model: Anthropic::Model::CLAUDE_OPUS_5_5,
27812781 max_tokens: 1024,
27822782 messages: [{ role: "user", content: "Hello!" }]
27832783 )
from line 2946
29462946 client = Anthropic::Client.new
29472947 
29482948 stream = client.messages.stream(
2949 model: "claude-opus-5-5",
2949 model: Anthropic::Model::CLAUDE_OPUS_5_5,
29502950 max_tokens: 1024,
29512951 messages: [{ role: "user", content: "Hello!" }]
29522952 )
Feedback