feat(models): add Claude Fable 5#4921
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub. |
PR SummaryMedium Risk Overview Updates Reviewed by Cursor Bugbot for commit 3bfe234. Configure here. |
Greptile SummaryThis PR registers
Confidence Score: 5/5Safe to merge — the change is additive, touches only the model registry and one routing predicate, and the adaptive-thinking path for Fable 5 is identical to the established Opus 4.8/4.7 path. The new model entry is consistent with all existing adaptive-only entries, the substring match in supportsAdaptiveThinking follows the same convention used for every other model, and the deliberate omission of temperature and nativeStructuredOutputs is documented and correct. No existing routing logic is altered. No files require special attention. Important Files Changed
Flowchart%%{init: {'theme': 'neutral'}}%%
flowchart TD
A[Request with model: claude-fable-5] --> B{thinkingLevel set\nand ≠ 'none'?}
B -- No --> C[Send payload without\nthinking config\nFable 5 defaults to adaptive]
B -- Yes --> D[buildThinkingConfig]
D --> E{supportsAdaptiveThinking?\nfable-5 ✓}
E -- true --> F["thinking: { type: 'adaptive' }\noutput_config: { effort: level }"]
E -- false --> G["thinking: { type: 'enabled', budget_tokens: N }"]
F --> H[Anthropic API]
G --> H
C --> H
Reviews (2): Last reviewed commit: "docs(anthropic): note Fable 5 in buildTh..." | Re-trigger Greptile |
|
@greptile |
|
@cursor review |
There was a problem hiding this comment.
✅ Bugbot reviewed your changes and found no new issues!
Comment @cursor review or bugbot run to trigger another review on this PR
Reviewed by Cursor Bugbot for commit 3bfe234. Configure here.
Summary
claude-fable-5to the Anthropic provider inmodels.ts— Anthropic's new most-capable widely-released model (GA June 9, 2026)low | medium | high | xhigh | max(defaulthigh), matching the Opus 4.8 adaptive-thinking profilesupportsAdaptiveThinking()inanthropic/core.tsto recognizefable-5— Fable 5 is adaptive-thinking-only and rejectsbudget_tokensextended thinking, so without this any selected thinking level would route to the wrong path (andxhigh/maxwould silently no-op)nativeStructuredOutputs(not in Fable 5's launch feature list) andtemperature(incompatible with always-on adaptive thinking), consistent with the Opus 4.8/4.7 entriesType of Change
Testing
Tested manually —
bun run lintpasses; verified Fable 5 routes through the adaptive-thinking path for all five effort levelsChecklist