mirror of
https://github.com/wu736139669/hapi.git
synced 2026-08-09 07:29:51 +00:00
feat: add Fable model presets for Claude sessions (#860)
* feat: add Fable model presets for Claude sessions Claude Code 2.x accepts the fable / fable[1m] model aliases for Fable 5. hapi passes the model string through verbatim, so adding the presets to CLAUDE_MODEL_LABELS surfaces them in the new-session and composer model pickers, labels, and the 1M context-window heuristic. * test: update modelOptions full-list assertions for Fable presets Addresses review feedback on #860: getModelOptionsForFlavor appends every Claude preset, so the two complete-array expectations must include the new fable entries.
This commit is contained in:
@@ -27,7 +27,9 @@ describe('getModelOptionsForFlavor', () => {
|
||||
{ value: 'sonnet', label: 'Sonnet' },
|
||||
{ value: 'sonnet[1m]', label: 'Sonnet 1M' },
|
||||
{ value: 'opus', label: 'Opus' },
|
||||
{ value: 'opus[1m]', label: 'Opus 1M' }
|
||||
{ value: 'opus[1m]', label: 'Opus 1M' },
|
||||
{ value: 'fable', label: 'Fable' },
|
||||
{ value: 'fable[1m]', label: 'Fable 1M' }
|
||||
])
|
||||
})
|
||||
|
||||
@@ -41,7 +43,9 @@ describe('getModelOptionsForFlavor', () => {
|
||||
{ value: 'sonnet', label: 'Sonnet' },
|
||||
{ value: 'sonnet[1m]', label: 'Sonnet 1M' },
|
||||
{ value: 'opus', label: 'Opus' },
|
||||
{ value: 'opus[1m]', label: 'Opus 1M' }
|
||||
{ value: 'opus[1m]', label: 'Opus 1M' },
|
||||
{ value: 'fable', label: 'Fable' },
|
||||
{ value: 'fable[1m]', label: 'Fable 1M' }
|
||||
])
|
||||
})
|
||||
|
||||
|
||||
Reference in New Issue
Block a user