mirror of
https://github.com/AgentSeal/codeburn.git
synced 2026-08-15 19:44:24 +00:00
Merge pull request #58 from mallek/fix/claude-opus-4-7-model-mapping
fix: add claude-opus-4-7 model mapping and pricing
This commit is contained in:
commit
bd90d9c412
2 changed files with 3 additions and 0 deletions
|
|
@ -24,6 +24,7 @@ const CACHE_TTL_MS = 24 * 60 * 60 * 1000
|
|||
const WEB_SEARCH_COST = 0.01
|
||||
|
||||
const FALLBACK_PRICING: Record<string, ModelCosts> = {
|
||||
'claude-opus-4-7': { inputCostPerToken: 5e-6, outputCostPerToken: 25e-6, cacheWriteCostPerToken: 6.25e-6, cacheReadCostPerToken: 0.5e-6, webSearchCostPerRequest: WEB_SEARCH_COST, fastMultiplier: 6 },
|
||||
'claude-opus-4-6': { inputCostPerToken: 5e-6, outputCostPerToken: 25e-6, cacheWriteCostPerToken: 6.25e-6, cacheReadCostPerToken: 0.5e-6, webSearchCostPerRequest: WEB_SEARCH_COST, fastMultiplier: 6 },
|
||||
'claude-opus-4-5': { inputCostPerToken: 5e-6, outputCostPerToken: 25e-6, cacheWriteCostPerToken: 6.25e-6, cacheReadCostPerToken: 0.5e-6, webSearchCostPerRequest: WEB_SEARCH_COST, fastMultiplier: 1 },
|
||||
'claude-opus-4-1': { inputCostPerToken: 15e-6, outputCostPerToken: 75e-6, cacheWriteCostPerToken: 18.75e-6, cacheReadCostPerToken: 1.5e-6, webSearchCostPerRequest: WEB_SEARCH_COST, fastMultiplier: 1 },
|
||||
|
|
@ -175,6 +176,7 @@ export function calculateCost(
|
|||
export function getShortModelName(model: string): string {
|
||||
const canonical = getCanonicalName(model)
|
||||
const shortNames: Record<string, string> = {
|
||||
'claude-opus-4-7': 'Opus 4.7',
|
||||
'claude-opus-4-6': 'Opus 4.6',
|
||||
'claude-opus-4-5': 'Opus 4.5',
|
||||
'claude-opus-4-1': 'Opus 4.1',
|
||||
|
|
|
|||
|
|
@ -5,6 +5,7 @@ import { homedir } from 'os'
|
|||
import type { Provider, SessionSource, SessionParser } from './types.js'
|
||||
|
||||
const shortNames: Record<string, string> = {
|
||||
'claude-opus-4-7': 'Opus 4.7',
|
||||
'claude-opus-4-6': 'Opus 4.6',
|
||||
'claude-opus-4-5': 'Opus 4.5',
|
||||
'claude-opus-4-1': 'Opus 4.1',
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue