Skip to content

Make Codex and Claude Code subscriptions go further: a local model router that gives routine agent work to economical models and keeps your strongest model for the hard parts.

623 B
Raw Blame
import projection from '../../../../assets/model-data/current/runtime-projection.json';

// Deterministic projection of the same source as the daemon's bundled catalog.
const templates = projection.connection_templates;
export function connectionTemplate(optionId?: string | null) {
  return templates.find(template => template.connection_option_id === optionId);
}
export function connectionName(optionId: string | null | undefined, language: 'zh' | 'en', fallback = '') {
  const template = connectionTemplate(optionId);
  return template?.name[language] || template?.name[language === 'zh' ? 'en' : 'zh'] || fallback;
}