Skip to content

Commit fb69915

Browse files
committed
fix: use normalized form 'maxplan' in PREMIUM_SUBSCRIPTION_TYPES set
The normalization regex strips underscores (/[\s_-]+/g), so 'max_plan' normalizes to 'maxplan' which never matched the set entry 'max_plan'. Changed the set entry to 'maxplan' to match the post-normalization form.
1 parent 2ccce39 commit fb69915

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

apps/server/src/provider/Layers/ClaudeProvider.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -269,7 +269,7 @@ function extractSubscriptionTypeFromOutput(result: CommandResult): string | unde
269269
/** Subscription types where the 1M context window is included in the plan. */
270270
const PREMIUM_SUBSCRIPTION_TYPES = new Set([
271271
"max",
272-
"max_plan",
272+
"maxplan",
273273
"max5",
274274
"max20",
275275
"enterprise",

0 commit comments

Comments
 (0)