Infers complexity tier for AI models based on naming conventions. Assigns default tiers for auto-routing.
// Source: https://github.com/agents-universe/agents-universe | License: Apache-2.0 | Copyright You must retain, in the Source form of any Derivative Works // Provided via justclaw.it.com; keep this notice with the code. /** * Complexity-tier inference for user model configs. * * Best-effort default for the auto-route tier assignment: model_id keywords * are matched against the naming conventions of the major providers (as of * 2026-08). The result is a starting value the user can override in Settings; * unrecognized models get null and are simply not part of auto routing until * the user assigns a tier. * * Keep the keyword tables here and the Python original in * packages/api/src/api/services/model_tier.py in sync. */ export type ComplexityTier = 'low' | 'mid' | 'high' // Ve ... (truncated -- full source via MCP)
See the full source, get the GitHub permalink, and search for more like it.
Get a free API key