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
feat: use provider prefix for model value resolution
nyatoru9aad41380900
diff --git a/src/app/(dashboard)/dashboard/combos/page.tsx b/src/app/(dashboard)/dashboard/combos/page.tsxindex acf0e8b093..03fbae3c79 100644--- a/src/app/(dashboard)/dashboard/combos/page.tsx+++ b/src/app/(dashboard)/dashboard/combos/page.tsx@@ -631,8 +631,11 @@ function ComboFormModal({ isOpen, combo, onClose, onSave, activeProviders }) {const parts = modelValue.split("/");if (parts.length !== 2) return modelValue;- const [providerId, modelId] = parts;- const matchedNode = providerNodes.find((node) => node.id === providerId);+ const [providerPart, modelId] = parts;+ // Match by node ID or prefix+ const matchedNode = providerNodes.find(+ (node) => node.id === providerPart || node.prefix === providerPart+ );if (matchedNode) {return `${matchedNode.name}/${modelId}`;diff --git a/src/shared/components/ModelSelectModal.tsx b/src/shared/components/ModelSelectModal.tsxindex 71b36c33b0..3759113968 100644--- a/src/shared/components/ModelSelectModal.tsx+++ b/src/shared/components/ModelSelectModal.tsx@@ -149,13 +149,14 @@ export default function ModelSelectModal({} else if (isCustomProvider) {const matchedNode = providerNodes.find((node) => node.id === providerId);const displayName = matchedNode?.name || providerInfo.name;+ const nodePrefix = matchedNode?.prefix || providerId;const nodeModels = Object.entries(modelAliases as Record<string, string>).filter(([, fullModel]: [string, string]) => fullModel.startsWith(`${providerId}/`)).map(([aliasName, fullModel]: [string, string]) => ({id: fullModel.replace(`${providerId}/`, ""),name: aliasName,- value: fullModel,+ value: `${nodePrefix}/${fullModel.replace(`${providerId}/`, "")}`,}));// Merge custom models for custom providers@@ -164,7 +165,7 @@ export default function ModelSelectModal({.map((cm) => ({id: cm.id,name: cm.name || cm.id,- value: `${providerId}/${cm.id}`,+ value: `${nodePrefix}/${cm.id}`,isCustom: true,}));@@ -173,7 +174,7 @@ export default function ModelSelectModal({if (allModels.length > 0) {groups[providerId] = {name: displayName,- alias: matchedNode?.prefix || providerId,+ alias: nodePrefix,color: providerInfo.color,models: allModels,isCustom: true,