We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 658a39b commit 4d6dcf9Copy full SHA for 4d6dcf9
common/src/constants/free-agents.ts
@@ -100,7 +100,16 @@ export function isFreeModeAllowedAgentModel(
100
// For these, any model check should fail (they shouldn't be making LLM calls)
101
if (allowedModels.size === 0) return false
102
103
- return allowedModels.has(model)
+ // Exact match first
104
+ if (allowedModels.has(model)) return true
105
+
106
+ // OpenRouter may return dated variants (e.g. "minimax/minimax-m2.5-20260211")
107
+ // so also check if the returned model starts with any allowed model prefix.
108
+ for (const allowed of allowedModels) {
109
+ if (model.startsWith(allowed + '-')) return true
110
+ }
111
112
+ return false
113
}
114
115
/**
0 commit comments