refusals-and-fallback changedbuild-with-claude/refusals-and-fallback
Nearest release: v2.1.304, published under an hour after 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+1added
Lines−22removed
From line
253
where the diff opens
First seen
14 Aug 2026
this site's first read of the page
Recorded edits23to this page, all time
The whole hunk
from line 253, old and new numbered
/
from line 253
253253 "max_tokens": 1024,
254254 "fallbacks": "default",
255255 "messages": [{"role": "user", "content": "Hello, Claude"}]
256 }' |
257 jq -c '{
258 stop_reason,
259 model,
260 # A fallback_message entry in usage.iterations means a fallback model ran;
261 # pair it with stop_reason to confirm the fallback served the response.
262 served_by_fallback: (
263 any(.usage.iterations[]?; .type == "fallback_message")
264 and .stop_reason != "refusal"
265 )
266256 }'
267257 ```
268258
from line 262
272262 --max-tokens 1024 \
273263 --message '{"role":"user","content":"Hello, Claude"}' \
274264 --fallbacks default \
275 --beta server-side-fallback-2026-07-01 \
276 --format json |
277 jq -c '{
278 stop_reason,
279 model,
280 # A fallback_message entry in usage.iterations means a fallback model ran;
281 # pair it with stop_reason to confirm the fallback served the response.
282 served_by_fallback: (
283 any(.usage.iterations[]?; .type == "fallback_message")
284 and .stop_reason != "refusal"
285 )
286 }'
265 --beta server-side-fallback-2026-07-01
287266 ```
288267
289268 ```python Python
No line in this hunk matches that.