Skip to content

Add claude-fable-5 to litellm proxy and bump Claude Code to 2.1.207#2437

Open
weishi-imbue wants to merge 4 commits into
mainfrom
mngr/fable
Open

Add claude-fable-5 to litellm proxy and bump Claude Code to 2.1.207#2437
weishi-imbue wants to merge 4 commits into
mainfrom
mngr/fable

Conversation

@weishi-imbue

@weishi-imbue weishi-imbue commented Jul 11, 2026

Copy link
Copy Markdown
Contributor

Makes Claude Fable 5 available in minds workspaces: the LiteLLM proxy learns to route and price claude-fable-5, and the pinned Claude Code version moves to a Fable-capable release.

Changes

LiteLLM proxy — add claude-fable-5

  • apps/modal_litellm/app.py (LITELLM_CONFIG) and its mirror litellm_proxy/config.yaml: new model entry with inline pricing mirrored from litellm's model_prices_and_context_window map — $10 / $50 per 1M input/output tokens, cache write 1.25e-5, cache read 1e-6 (2x Opus tier). Inline pricing keeps cost tracking correct regardless of the deployed litellm version's bundled price map; config_drift_test.py keeps the two configs in sync.

Usage pricing tables

  • libs/mngr_usage/.../pricing.py: anthropic/claude-fable-5 entry so token-only usage sources price Fable instead of reporting it unpriced (mngr_usage_pricing_drift_test.py enforces sync with modal_litellm).
  • libs/mngr_robinhood/.../_agent_sdk/pricing.py: fable family entry so Agent SDK sessions report total_cost_usd instead of None, with a resolve-test assertion.

Claude Code pin 2.1.160 → 2.1.207 (latest release; supports Fable) at all five sites: release Dockerfile ARG, scripts/snapshot_minds_e2e_state.py, release-tests.yml (2), tmr-setup action.

Changelog entries for all five touched projects.

Verification

  • Full suite: just test-offload — 15431 passed, 0 failed.
  • Empirical, on a real deployed proxy: deployed the dev-weishi env from this branch, minted a LiteLLM virtual key, and ran claude -p --model claude-fable-5 with ANTHROPIC_BASE_URL pointed at the proxy (the exact workspace wire path). Request succeeded end-to-end and the spend log recorded anthropic/claude-fable-5, $0.735645, 60069 tokens — consistent with the cache-write rate (60k tokens x 1.25e-5 ≈ $0.75).
  • Also confirms the Anthropic org meets Fable's 30-day data-retention requirement (no 400s).

Merge coordination

Companion PR imbue-ai/default-workspace-template#258 bumps [agent_types.claude].version to 2.1.207. The release test test_claude_code_version_matches_default_workspace_template_pin requires the two pins to match — merge both together (release tests don't run in CI, but agent provisioning fails on a version mismatch until both land).

Rollout

Deployed proxies pick up the model list on their next minds env deploy; staging/production deploys to be coordinated after merge. Workspaces on the SUBSCRIPTION/API_KEY AI providers only need the version bump.

🤖 Generated with Claude Code

Fable pricing ($10/$50 per 1M, cache 1.25e-5/1e-6) mirrored from litellm's
model_prices_and_context_window map, registered inline in both litellm
configs and mngr_usage's MODEL_PRICING. Claude Code pin bumped at all five
sites (Dockerfile ARG, snapshot script, CI workflows); the matching
default-workspace-template pin bump lands in a separate PR.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
weishi-imbue and others added 2 commits July 11, 2026 17:19
Problem: dev/changelog/mngr-fable.md described only the Claude Code CLI
version bump, omitting the claude-fable-5 addition to the repo-root
litellm_proxy/config.yaml, which is also a dev-project change.
Fix: add a second bullet covering the config.yaml model addition and its
inline pricing, matching how the prior model-lineup PR documented it.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Problem: the mngr_robinhood Agent SDK resolves per-model pricing by family
substring (haiku/sonnet/opus only), so claude-fable-5 sessions reported
ResultMessage.total_cost_usd=None -- the same unpriced gap this branch
closed in mngr_usage's token->USD table.
Fix: add _FABLE_PRICING (input $10 / output $50 per 1M, cache write
$12.50, cache read $1.00, matching litellm's price map) and a fable
family entry, with a resolve test and a mngr_robinhood changelog entry.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@weishi-imbue weishi-imbue marked this pull request as ready for review July 12, 2026 02:56
@joshalbrecht

Copy link
Copy Markdown
Contributor

lgtm except for one required follow up change, see slack

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.

2 participants