Files
Sergey Kozyrenko 3079a9e746 feat(anthropic): surface model refusals as a typed error
Claude can stop with stop_reason "refusal" (a creative model such as Fable 5
hitting a content boundary). Return a typed ErrModelRefusal carrying any refusal
text instead of a generic "no response": an empty-content refusal previously
looked identical to an empty/failed response, so callers could not tell "the
model declined" from "the request failed".

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-07-13 20:28:06 +07:00
..
2025-06-22 02:27:21 +03:00