mirror of
https://github.com/AgentSeal/codeburn.git
synced 2026-12-03 03:29:51 +00:00
chore(pricing): drop manual Fable/Mythos patch; fable now gap-filled from models.dev/OpenRouter; keep Fable 5 name (#464)
This commit is contained in:
parent
a385f65dee
commit
ad251cfa3d
3 changed files with 7 additions and 25 deletions
File diff suppressed because one or more lines are too long
|
|
@ -63,20 +63,6 @@ function loadSnapshot(): Map<string, ModelCosts> {
|
|||
for (const [name, raw] of Object.entries(snapshotData as unknown as Record<string, SnapshotEntry>)) {
|
||||
map.set(name, tupleToCosts(raw))
|
||||
}
|
||||
// TEMP (2026-06-09): Fable 5 / Mythos 5 launch pricing, $10/M input and $50/M output,
|
||||
// until LiteLLM indexes them. Added as snapshot fallbacks so a real LiteLLM entry, once
|
||||
// it exists, takes precedence (mergeSnapshotFallbacks only fills gaps). Remove then.
|
||||
const tempLaunch: ModelCosts = {
|
||||
inputCostPerToken: 0.00001,
|
||||
outputCostPerToken: 0.00005,
|
||||
cacheWriteCostPerToken: 0.0000125,
|
||||
cacheReadCostPerToken: 0.000001,
|
||||
webSearchCostPerRequest: WEB_SEARCH_COST,
|
||||
fastMultiplier: 1,
|
||||
}
|
||||
for (const id of ['claude-fable-5', 'claude-mythos-5']) {
|
||||
if (!map.has(id)) map.set(id, { ...tempLaunch })
|
||||
}
|
||||
return map
|
||||
}
|
||||
|
||||
|
|
@ -559,9 +545,8 @@ const autoModelNames: Record<string, string> = {
|
|||
}
|
||||
|
||||
const SHORT_NAMES: Record<string, string> = {
|
||||
// TEMP (2026-06-09): until deriveClaudeShortName or LiteLLM cover them.
|
||||
// claude-fable-5 is outside the opus/sonnet/haiku families deriveClaudeShortName covers.
|
||||
'claude-fable-5': 'Fable 5',
|
||||
'claude-mythos-5': 'Mythos 5',
|
||||
// Modern claude-<family>-<major>-<minor> ids are derived in deriveClaudeShortName.
|
||||
// Only the legacy 3.x ids (family-last) need explicit mapping.
|
||||
'claude-3-7-sonnet': 'Sonnet 3.7',
|
||||
|
|
|
|||
|
|
@ -69,16 +69,13 @@ describe('getShortModelName', () => {
|
|||
})
|
||||
})
|
||||
|
||||
describe('Fable 5 / Mythos 5 launch pricing (temporary)', () => {
|
||||
it('prices fable-5 and mythos-5 at $10/M input, $50/M output', () => {
|
||||
for (const id of ['claude-fable-5', 'claude-mythos-5']) {
|
||||
expect(calculateCost(id, 1_000_000, 0, 0, 0, 0)).toBeCloseTo(10, 6)
|
||||
expect(calculateCost(id, 0, 1_000_000, 0, 0, 0)).toBeCloseTo(50, 6)
|
||||
}
|
||||
describe('claude-fable-5 pricing + name', () => {
|
||||
it('prices at $10/M input, $50/M output via models.dev/OpenRouter gap-fill', () => {
|
||||
expect(calculateCost('claude-fable-5', 1_000_000, 0, 0, 0, 0)).toBeCloseTo(10, 6)
|
||||
expect(calculateCost('claude-fable-5', 0, 1_000_000, 0, 0, 0)).toBeCloseTo(50, 6)
|
||||
})
|
||||
it('gives them their own display names', () => {
|
||||
it('shows its own display name', () => {
|
||||
expect(getShortModelName('claude-fable-5')).toBe('Fable 5')
|
||||
expect(getShortModelName('claude-mythos-5')).toBe('Mythos 5')
|
||||
})
|
||||
})
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue