File size: 906 Bytes
11ae1d4
 
 
 
 
a552db5
 
2240184
11ae1d4
 
 
 
 
 
 
 
 
a552db5
11ae1d4
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
import 'dotenv/config';

export const config = {
  openRouterKey: process.env.OPENROUTER_API_KEY,
  models: {
    scout: process.env.SCOUT_MODEL || 'google/gemini-3.1-flash-lite',
    generate: process.env.GENERATE_MODEL || 'google/gemini-3.1-flash-lite',
    score: process.env.SCORE_MODEL || "google/gemini-3-flash-preview", // 'anthropic/claude-3.5-sonnet',
    build: process.env.BUILD_MODEL || 'anthropic/claude-3.5-sonnet',
  },
  maxSpendUsd: Number(process.env.MAX_SPEND_USD || 5),
};

// Very rough per-1K-token price table (USD), just enough to keep a running
// estimate so a runaway loop doesn't blow your balance. Update as needed —
// these are NOT guaranteed accurate, check OpenRouter's pricing page.
export const ROUGH_PRICE_PER_1K = {
  'google/gemini-3.1-flash-lite': 0.00015,
  'meta-llama/llama-3.1-8b-instruct': 0.00006,
  'anthropic/claude-3.5-sonnet': 0.006,
  default: 0.001,
};