Skip to content

feat: attachment and content filter error kinds - #58

Merged
Im-Beast merged 1 commit into
mateusz/retry-loopfrom
mateusz/attachment-errors
Sep 13, 2026
Merged

feat: attachment and content filter error kinds#58
Im-Beast merged 1 commit into
mateusz/retry-loopfrom
mateusz/attachment-errors

Conversation

@Im-Beast

@Im-Beast Im-Beast commented Sep 13, 2026

Copy link
Copy Markdown
Contributor
  • Adds invalid_attachment for files we fail to fetch or parse ourselves, never retried
  • Adds attachment_rejected for a provider refusing the file, switches model and skips it for the run
  • Adds content_filtered for guardrail rejections, never retried
  • Attachment fetches now fail on non-2xx and empty bodies, including the Anthropic text fetch that sent a 404 body as file text
  • Remaps overloaded_error, terminated, "had an error processing your request" and "missing finish_reason" onto transient kinds
  • Bumps to 0.7.1

@Im-Beast
Im-Beast added this pull request to stack #59 September 13, 2026 19:50
@Im-Beast
Im-Beast marked this pull request as ready for review September 13, 2026 19:53
@Im-Beast
Im-Beast merged commit 477b7aa into main Sep 13, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant