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.
Rust ai-agentsai-gatewayclaude-codecodexcoding-agentcost-optimizationdeepseekllm-gatewayllm-routerlocal-firstmodel-routingrusttask-routingtauri
const currencySymbols: Record<string, string> = {
CNY: '¥',
RMB: '¥',
USD: '$',
EUR: '€',
GBP: '£',
JPY: '¥',
};
export function formatMoney(currency: string, amount: string): string {
const normalized = currency.trim().toUpperCase();
return `${currencySymbols[normalized] ?? `${currency} `}${amount}`;
}