repositories
loading repo index
repositories
loading repo index
repository
loading code, commits, and activity
The Living OS cockpit
stars
latest
clone command
git clone gitlawb://did:key:z6Mku78K...XywC/living-os-cockp...git clone gitlawb://did:key:z6Mku78K.../living-os-cockp...59751530feat: surface worker supervisor health in live work5h ago| #1 | export interface ModelDef { |
| #2 | id: string; |
| #3 | label: string; |
| #4 | provider: 'local' | 'venice' | 'anthropic'; |
| #5 | costInputPerMillion: number; |
| #6 | costOutputPerMillion: number; |
| #7 | speedNote?: string; |
| #8 | } |
| #9 | |
| #10 | export const MODELS: ModelDef[] = [ |
| #11 | { id: 'openyourmind-local', label: 'OYM (local, uncensored)', provider: 'local', costInputPerMillion: 0, costOutputPerMillion: 0, speedNote: 'local multimodal' }, |
| #12 | { id: 'openyourmind-qwen35', label: 'OpenYourMind Qwen3.6 (local)', provider: 'local', costInputPerMillion: 0, costOutputPerMillion: 0, speedNote: 'legacy local alias' }, |
| #13 | { id: 'deepseek-v4-flash', label: 'DeepSeek V4 Flash (Venice)', provider: 'venice', costInputPerMillion: 0.27, costOutputPerMillion: 1.10, speedNote: '~20s avg' }, |
| #14 | { id: 'deepseek-v4-pro', label: 'DeepSeek V4 Pro (Venice)', provider: 'venice', costInputPerMillion: 2.00, costOutputPerMillion: 8.00, speedNote: 'specialist/delegation fallback' }, |
| #15 | { id: 'kimi-k2-5', label: 'Kimi K2.5 (Venice)', provider: 'venice', costInputPerMillion: 0.60, costOutputPerMillion: 2.50, speedNote: 'editorial/systemic lane' }, |
| #16 | { id: 'kimi-k2-6', label: 'Kimi K2.6 (Venice)', provider: 'venice', costInputPerMillion: 0.60, costOutputPerMillion: 2.50, speedNote: 'council creative/execution lane' }, |
| #17 | { id: 'qwen3-coder', label: 'Qwen3 Coder (Venice)', provider: 'venice', costInputPerMillion: 0.80, costOutputPerMillion: 3.20 }, |
| #18 | { id: 'venice-uncensored', label: 'Venice 1.1 Uncensored (Venice)', provider: 'venice', costInputPerMillion: 0.50, costOutputPerMillion: 2.00 }, |
| #19 | { id: 'claude-opus-4-8', label: 'Opus 4.8 (Anthropic)', provider: 'anthropic', costInputPerMillion: 15, costOutputPerMillion: 75, speedNote: 'King delegation brain' }, |
| #20 | { id: 'claude-opus-4-7', label: 'Opus 4.7 (Anthropic)', provider: 'anthropic', costInputPerMillion: 15, costOutputPerMillion: 75, speedNote: 'frontier reasoning' }, |
| #21 | { id: 'claude-sonnet-4-6', label: 'Sonnet 4.6 (Anthropic)', provider: 'anthropic', costInputPerMillion: 3, costOutputPerMillion: 15 }, |
| #22 | ]; |
| #23 | |
| #24 | export const DELEGATION_ROUTERS = [ |
| #25 | { id: 'claude-opus-4-8', label: 'Opus 4.8' }, |
| #26 | { id: 'claude-opus-4-7', label: 'Opus 4.7' }, |
| #27 | { id: 'claude-sonnet-4-6', label: 'Sonnet 4.6' }, |
| #28 | ]; |
| #29 | |
| #30 | export const DELEGATION_EXECUTORS = MODELS.filter(m => |
| #31 | ['openyourmind-local', 'openyourmind-qwen35', 'deepseek-v4-pro', 'deepseek-v4-flash', 'venice-uncensored', 'kimi-k2-6', 'qwen3-coder'].includes(m.id) |
| #32 | ); |
| #33 | |
| #34 | export function estimateCost(model: ModelDef, inputTokens: number, outputTokens: number): number { |
| #35 | return (inputTokens / 1_000_000) * model.costInputPerMillion + |
| #36 | (outputTokens / 1_000_000) * model.costOutputPerMillion; |
| #37 | } |
| #38 |