server.js.
Model tiers
TIER0: classifier + self-check modelTIER1: default serving tierTIER2: premium fallback tier
Cost estimation table
Routing and escalation
classifyTier(...)selectsTIER0,TIER1, orTIER2.- Streaming requests are routed once and passed through.
- Non-streaming requests run
runSelfCheck(...). - If self-check confidence is low, Astrolabe retries once on
TIER2.