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:
Will Chen
2025-09-30 12:58:17 -07:00
committed by GitHub
parent 582793eba0
commit 8f31821442
3 changed files with 29 additions and 7 deletions

View File

@@ -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: [