Follow Discord
Sweep 06 Nov 2026 · 01:32Z Build v2.1.319 537 read Stable v2.1.311 Latest v2.1.319 Next v2.1.319 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.318, published 17 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+12added
Lines−5removed
From line 1,930 where the diff opens
First seen 14 Aug 2026 this site's first read of the page
Recorded edits26to this page, all time

The whole hunk

from line 1930, old and new numbered
/
lines
from line 1930
19301930 ```
19311931 
19321932 ```python Python
1933 client = anthropic.Anthropic()
1934 
19331935 # Request with maximum tokens to get as much as possible
19341936 response = client.beta.messages.create(
19351937 model="claude-opus-5-5",
from line 1948
19461948 ```
19471949 
19481950 ```typescript TypeScript
1951 const client = new Anthropic();
1952 
19491953 // Request with maximum tokens to get as much as possible
19501954 const response = await client.beta.messages.create({
19511955 model: "claude-opus-5-5",
from line 1965
19611965 ```
19621966 
19631967 ```csharp C#
1964 using Anthropic.Models.Beta.Messages;
1965 using Model = Anthropic.Models.Messages.Model;
1968 AnthropicClient client = new();
19661969 
19671970 // Request with maximum tokens to get as much as possible
19681971 var response = await client.Beta.Messages.Create(new MessageCreateParams
from line 1984
19811984 ```
19821985 
19831986 ```go Go
1987 client := anthropic.NewClient()
1988 
19841989 // Request with maximum tokens to get as much as possible
19851990 response, err := client.Beta.Messages.New(context.TODO(), anthropic.BetaMessageNewParams{
19861991 Model: anthropic.ModelClaudeOpus5_5,
from line 2006
20012006 ```
20022007 
20032008 ```java Java
2004 import com.anthropic.models.beta.messages.BetaMessage;
2005 import com.anthropic.models.beta.messages.BetaStopReason;
2006 import com.anthropic.models.beta.messages.MessageCreateParams;
2009 AnthropicClient client = AnthropicOkHttpClient.fromEnv();
20072010 
20082011 // Request with maximum tokens to get as much as possible
20092012 BetaMessage response = client.beta().messages().create(
from line 2025
20222025 ```
20232026 
20242027 ```php PHP
2028 $client = new Client();
2029 
20252030 // Request with maximum tokens to get as much as possible
20262031 $response = $client->beta->messages->create(
20272032 maxTokens: 20000,
from line 2042
20372042 ```
20382043 
20392044 ```ruby Ruby
2045 client = Anthropic::Client.new
2046 
20402047 # Request with maximum tokens to get as much as possible
20412048 response = client.beta.messages.create(
20422049 model: "claude-opus-5-5",
Feedback