refactor(cursor-models): remove tier property from Cursor model configurations

- Removed the 'tier' property from Cursor model configurations and related UI components.
- Updated relevant files to reflect the removal of tier-related logic and display elements.
- This change simplifies the model structure and UI, focusing on essential attributes.
This commit is contained in:
Kacper
2026-01-01 20:00:40 +01:00
parent 3b3e61da8d
commit 63b9f52d6b
6 changed files with 0 additions and 38 deletions

View File

@@ -114,11 +114,6 @@ export function AgentModelSelector({
Thinking
</span>
)}
{model.tier === 'pro' && (
<span className="text-[10px] px-1.5 py-0.5 rounded bg-amber-500/10 text-amber-600 dark:text-amber-400">
Pro
</span>
)}
</div>
<span className="text-xs text-muted-foreground">{model.description}</span>
</div>

View File

@@ -10,7 +10,6 @@ export type ModelOption = {
badge?: string;
provider: ModelProvider;
hasThinking?: boolean;
tier?: 'free' | 'pro';
};
export const CLAUDE_MODELS: ModelOption[] = [
@@ -48,7 +47,6 @@ export const CURSOR_MODELS: ModelOption[] = Object.entries(CURSOR_MODEL_MAP).map
description: config.description,
provider: 'cursor' as ModelProvider,
hasThinking: config.hasThinking,
tier: config.tier,
})
);

View File

@@ -180,14 +180,6 @@ export function ModelSelector({
Thinking
</Badge>
)}
{option.tier && (
<Badge
variant={option.tier === 'free' ? 'default' : 'secondary'}
className={cn('text-xs', isSelected && 'bg-primary-foreground/20')}
>
{option.tier}
</Badge>
)}
</div>
</button>
);

View File

@@ -117,9 +117,6 @@ export function CursorModelConfiguration({
<p className="text-xs text-muted-foreground">{model.description}</p>
</div>
</div>
<Badge variant={model.tier === 'free' ? 'default' : 'secondary'}>
{model.tier}
</Badge>
</div>
);
})}