Skip to content
Source
Sign inSign up
pingdotgg/t3code

Remove Claude subscription-based model adjustment #1899

Mergedjuliusmarmingemerged 1 commit intomain fromrefs/pull/1899/headmerged by juliusmarminge View on GitHub

Showing 1 changed file with 3 additions and 52 deletions.

x
0 of 1 viewed, 1 left
3 additions and 52 deletionsapps/server/src/provider/Layers/ClaudeProvider.tsModified
View file
@@ -276,18 +276,6 @@
return Option.getOrUndefined(findAuthMethod(parsed.success));
​
-// ── Dynamic model capability adjustment ─────────────────────────────
-​
-/** Subscription types where the 1M context window is included in the plan. */
-const PREMIUM_SUBSCRIPTION_TYPES = new Set([
- "max",
- "maxplan",
- "max5",
- "max20",
- "enterprise",
- "team",
-]);
-​
function toTitleCaseWords(value: string): string {
return value
.split(/[\s_-]+/g)
@@ -348,41 +336,6 @@
return undefined;
​
-/**
- * Adjust the built-in model list based on the user's detected subscription.
- *
- * - Premium tiers (Max, Enterprise, Team): 1M context becomes the default.
- * - Other tiers (Pro, free, unknown): 200k context stays the default;
- * 1M remains available as a manual option so users can still enable it.