Skip to content

feat(anthropic): register claude-opus-4-8 and claude-fable-5 model configs#711

Merged
agentforce314 merged 1 commit into
mainfrom
feat/anthropic-opus-4-8-fable-5
Jul 13, 2026
Merged

feat(anthropic): register claude-opus-4-8 and claude-fable-5 model configs#711
agentforce314 merged 1 commit into
mainfrom
feat/anthropic-opus-4-8-fable-5

Conversation

@agentforce314

Copy link
Copy Markdown
Owner

Summary

Adds the two latest Anthropic models — claude-opus-4-8 ($5/$25 per MTok) and claude-fable-5 ($10/$50 per MTok), both 1M context / 128K output — to every model-config surface.

  • models/configs.pyModelConfig rows: 1M context window; max_output_tokens=32_000 (first-attempt wire max_tokens; keeps the 64K truncation-escalation meaningful — true cap 128K noted in comments). Rows placed after the legacy opus entry so prefix fallback for claude-opus-4-1..4-7 is byte-for-byte unchanged (test-pinned).
  • services/pricing.py — new _TIER_10_50 for Fable 5; exact PRICING + _FAMILY_PREFIXES entries for both, so dated snapshots price correctly.
  • providers — both models added to the anthropic available_models lists; fable added to _LARGE_MAX_TOKENS_MODEL_PATTERN so Fable 5 gets the 32K default instead of the legacy 4096.
  • query.pyopus-4-8/fable-5 added to the adaptive-thinking + effort allowlists and fable to the thinking-eligible pattern. Load-bearing: without it Opus 4.8 takes the budget_tokens path, which is a hard 400 on 4.8+ (Fable 5 accepts only adaptive or an omitted thinking param).

Testing

  • tests/test_model_system.py — 48 passed
  • pricing/cost suites — 107 passed
  • thinking/query/provider suites — 477 passed
  • End-to-end smoke check: both models resolve correct window, wire max_tokens, pricing, and thinking/effort flags; claude-opus-4-7 (200K fallback) and claude-opus-4-1 (15/75 tier) unchanged.

🤖 Generated with Claude Code

…nfigs

Add the two latest Anthropic models across every model-config surface:

- models/configs.py: ModelConfig rows (1M context; 32K first-attempt wire
  max_tokens with the 128K true cap noted; Opus 4.8 at $5/$25,
  Fable 5 at $10/$50 per MTok with matching cache rates). Placed after
  the legacy opus row so prefix fallback for opus-4-1..4-7 is unchanged.
- services/pricing.py: new 10/50 tier for Fable 5; exact PRICING and
  _FAMILY_PREFIXES entries for both models (dated snapshots included).
- providers: both added to the anthropic available_models lists; `fable`
  added to the large-max-tokens pattern so Fable 5 isn't capped at 4096.
- query.py: opus-4-8 and fable-5 added to the adaptive-thinking and
  effort allowlists, fable to the thinking-eligible pattern — without
  this, opus-4-8 would take the budget_tokens path, a hard 400 on 4.8+.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@agentforce314 agentforce314 merged commit 7efd73a into main Jul 13, 2026
2 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