Never stop coding. Free MIT AI gateway: one endpoint, 375 providers (150+ free), 1,400+ models Kimi, Claude, GPT, Gemini, GLM, DeepSeek, MiniMax. Works with Claude Code, Codex, Cursor, OpenCode, Cline & Copilot. Quota-aware auto-fallback, RTK+Caveman compression saves 15-95% tokens, MCP/A2A, Desktop/PWA. Built by 900+ contributors
TypeScript a2aai-agentsai-gatewayanthropicclaudeclaude-codeclinecodexcopilotcursordeepseekfree-aigeminikimillm-gatewaymcpopenaiopenai-proxyqwentoken-saver
fix(analytics): dynamic currency precision + codex pricing resolution (#1978)
Jan Leon5d006f7bee9b
diff --git a/src/app/api/usage/analytics/route.ts b/src/app/api/usage/analytics/route.tsindex fc76fbce7b..546d41c481 100644--- a/src/app/api/usage/analytics/route.ts+++ b/src/app/api/usage/analytics/route.ts@@ -87,6 +87,7 @@ function uniqueValues(values: Array<string | null | undefined>): string[] {return result;}+function makeApiKeyUsageGroup(apiKeyId: string, fallbackName: string): string {return apiKeyId ? `id:${apiKeyId}` : `name:${fallbackName}`;}@@ -97,6 +98,7 @@ function addApiKeyAlias(target: Set<string>, value: unknown): void {if (trimmed) target.add(trimmed);}+function stripCodexEffortSuffix(model: string): string {return model.replace(/-(?:xhigh|high|medium|low|none)$/i, "");}