super value (#1408)
<!-- CURSOR_SUMMARY -->
> [!NOTE]
> Introduces a new `auto` model `value` (Super Value Pro), adds
configurable tag colors across model types, and updates Model Picker
filtering and badges.
>
> - **Models and Types**:
> - Add new auto model `value` ("Super Value (Pro)") with `tag: Budget`
and `tagColor`.
> - Enhance `turbo` auto model with `tag: Fast` and `tagColor`.
> - Extend `LanguageModel` and `ModelOption` with optional `tagColor`.
> - **Model Picker UI**:
> - Render model tags with configurable colors via `tagColor` and `cn`
utility.
> - Update "Pro only" badge logic (hide when display name already
includes "(Pro)"); adjust badge text size.
> - Refine auto model visibility: non‑Pro hides `turbo` and `value`; Pro
hides `free`.
> - Minor styling/labeling tweaks in tag and badge rendering.
>
> <sup>Written by [Cursor
Bugbot](https://cursor.com/dashboard?tab=bugbot) for commit
4485fddad502237d4bceb43732043d3eaa60eaa0. This will update automatically
on new commits. Configure
[here](https://cursor.com/dashboard?tab=bugbot).</sup>
<!-- /CURSOR_SUMMARY -->
This commit is contained in:
@@ -186,6 +186,7 @@ export type LanguageModel =
|
||||
displayName: string;
|
||||
description: string;
|
||||
tag?: string;
|
||||
tagColor?: string;
|
||||
maxOutputTokens?: number;
|
||||
contextWindow?: number;
|
||||
temperature?: number;
|
||||
@@ -197,6 +198,7 @@ export type LanguageModel =
|
||||
displayName: string;
|
||||
description: string;
|
||||
tag?: string;
|
||||
tagColor?: string;
|
||||
maxOutputTokens?: number;
|
||||
contextWindow?: number;
|
||||
temperature?: number;
|
||||
|
||||
@@ -13,6 +13,7 @@ export interface ModelOption {
|
||||
dollarSigns?: number;
|
||||
temperature?: number;
|
||||
tag?: string;
|
||||
tagColor?: string;
|
||||
maxOutputTokens?: number;
|
||||
contextWindow?: number;
|
||||
}
|
||||
@@ -249,6 +250,18 @@ export const MODEL_OPTIONS: Record<string, ModelOption[]> = {
|
||||
maxOutputTokens: 32_000,
|
||||
contextWindow: 256_000,
|
||||
temperature: 0,
|
||||
tag: "Fast",
|
||||
tagColor: "bg-rose-800 text-white",
|
||||
},
|
||||
{
|
||||
name: "value",
|
||||
displayName: "Super Value (Pro)",
|
||||
description: "Uses the most cost-effective models available",
|
||||
maxOutputTokens: 32_000,
|
||||
contextWindow: 256_000,
|
||||
temperature: 0,
|
||||
tag: "Budget",
|
||||
tagColor: "bg-emerald-700 text-white",
|
||||
},
|
||||
],
|
||||
azure: [
|
||||
|
||||
Reference in New Issue
Block a user