Skip to content

0.22.5: draft writer falls back to OpenAI, says when an account is empty - #317

Merged
ralyodio merged 1 commit into
masterfrom
writer-openai-fallback
Oct 19, 2026
Merged

ralyodio merged 1 commit into
masterfrom
writer-openai-fallback

Conversation

@ralyodio

Copy link
Copy Markdown
Contributor

agenticjobs.work/post/draft showed "The model is rate limited right now. Try again shortly." The real answer from OpenAI was 429 insufficient_quota (no credits remaining), and prod had only OPENAI_API_KEY.

  • Anthropic first, OpenAI as the fallback when both keys are set
  • insufficient_quota / credit balance -> "out of credits", not "rate limited"
  • provider response logged server-side, still never shown on the page
  • WRITER_MODEL only applies to the provider it names (claude-* = Anthropic)
  • tests: fallback + empty-account cases (agentwriter 14/14)

🤖 Generated with Claude Code

…s empty

The /post drafter only ever called one provider, and reported OpenAI's
"no credits remaining" 429 as "rate limited, try again shortly". Now
Anthropic is tried first and OpenAI answers when it fails; an exhausted
balance on either says "out of credits"; the provider's raw answer is
logged server-side (never shown); WRITER_MODEL only goes to the
provider it names.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@ralyodio
ralyodio merged commit 0646e5c into master Oct 19, 2026
4 checks 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