handle-streaming-refusals changedtest-and-evaluate/strengthen-guardrails/handle-streaming-refusals
Nearest release: v2.1.308, published 2 hours 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−1removed
From line
14
where the diff opens
First seen
14 Aug 2026
this site's first read of the page
Recorded edits12to this page, all time
The whole hunk
from line 14, old and new numbered
/
from line 14
1414
1515When streaming classifiers detect content that violates Anthropic's policies, the API returns this response:
1616
17```json
17```text
1818{
1919 "role": "assistant",
2020 "content": [
No line in this hunk matches that.