Skip to content

fix(cli): default pi and claude aliases to anyrouter/free - #107

Merged
duyet merged 1 commit into
mainfrom
fix/free-default-models
Oct 21, 2026
Merged

duyet merged 1 commit into
mainfrom
fix/free-default-models

Conversation

@duyet

@duyet duyet commented Oct 21, 2026

Copy link
Copy Markdown
Contributor

Fixes #103, Fixes #104

Defaults (pi, claude haiku/sonnet/opus/fable) were BYOK-only anthropic models, so a new user with no credits got a 404 on first run. All five now default to anyrouter/free, which resolves for any account. Premium users switch with --model or anyr models use. No account detection (kept simple).

Verified live with a smoke key: anyrouter/free answers on /chat/completions and /messages. cargo test passes.

🤖 Generated with Claude Code

New accounts have no credits or BYOK, so the anthropic defaults failed on first run.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>

Co-authored-by: Duyet Le <me@duyet.net>
Co-authored-by: duyetbot <bot@duyet.net>

@duyetbot duyetbot left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewed: cargo test green (278+19+10+103+7). Claude path sets ANTHROPIC_DEFAULT_{HAIKU,SONNET,OPUS,FABLE}_MODEL=anyrouter/free; explicit --haiku/--sonnet/--opus/--fable and a pinned --model still win (alias closure unchanged). No BYOK-only default left (DEFAULT_MODEL is anyrouter/auto, pi maps auto to free). Nit: no README/help text mentions the defaults, so none needed. Note: the anyrouter-repo default-model check needs duyet/anyrouter fix to accept anyrouter/free.

@duyet
duyet merged commit e52c171 into main Oct 21, 2026
6 of 7 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

2 participants