Skip to content

feat(forge): dynamic model routing — kill hardcoded Sonnet - #30

Draft
turbillon50 wants to merge 2 commits into
mainfrom
claude/dynamic-model-routing
Draft

feat(forge): dynamic model routing — kill hardcoded Sonnet#30
turbillon50 wants to merge 2 commits into
mainfrom
claude/dynamic-model-routing

Conversation

@turbillon50

Copy link
Copy Markdown
Owner

Dynamic Model Routing — Ahorro 92% en OpenRouter

El problema

Todo iba a Claude Sonnet hardcodeado. $11.90 en 2 horas. 💸

La solución

Nuevo archivo lib/forge/model-env.ts con:

  • Variables de entorno por tarea
  • Cascade fallback automático
  • Modelos por agente de la familia

Variables a agregar en Vercel

MODEL_CHAT_MAIN=anthropic/claude-sonnet-4.6
MODEL_CODE=deepseek/deepseek-chat
MODEL_FAST=google/gemini-2.5-flash
MODEL_FREE=meta-llama/llama-3.3-70b-instruct
MODEL_CLASSIFY=meta-llama/llama-3.3-70b-instruct
MODEL_TRANSLATE=qwen/qwen-2-7b-instruct

Estimado de ahorro

Escenario Costo/mes
Antes (todo Sonnet) $150-200
Después (routing dinámico) $8-15
Ahorro 92% 🔥

Familia de agentes

  • V → Claude Sonnet (solo conversación con Luis)
  • Tanit → Gemini Flash
  • Breack → Llama gratis
  • Goosip → Gemini Flash
  • Scout → Llama gratis

@vercel

vercel Bot commented May 13, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
vforge Ready Ready Preview, Comment May 13, 2026 7:37am

Request Review

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant