remove unused isPaid label

This commit is contained in:
Abi Raja 2024-07-11 16:51:20 -04:00
parent 50d1288693
commit 1a26e325be
2 changed files with 1 additions and 14 deletions

View File

@ -11,7 +11,6 @@ import {
} from "../lib/models"; } from "../lib/models";
import { Badge } from "./ui/badge"; import { Badge } from "./ui/badge";
import { IS_RUNNING_ON_CLOUD } from "../config"; import { IS_RUNNING_ON_CLOUD } from "../config";
import { useStore } from "../store/store";
interface Props { interface Props {
codeGenerationModel: CodeGenerationModel; codeGenerationModel: CodeGenerationModel;
@ -24,8 +23,6 @@ function ModelSettingsSection({
setCodeGenerationModel, setCodeGenerationModel,
shouldDisableUpdates = false, shouldDisableUpdates = false,
}: Props) { }: Props) {
const subscriberTier = useStore((state) => state.subscriberTier);
return ( return (
<div className="flex flex-col gap-y-2 justify-between text-sm"> <div className="flex flex-col gap-y-2 justify-between text-sm">
<div className="grid grid-cols-3 items-center gap-4"> <div className="grid grid-cols-3 items-center gap-4">
@ -58,11 +55,6 @@ function ModelSettingsSection({
</Badge> </Badge>
)} )}
</div> </div>
{IS_RUNNING_ON_CLOUD &&
subscriberTier === "free" &&
CODE_GENERATION_MODEL_DESCRIPTIONS[model].isPaid && (
<Badge variant="default">Upgrade to Paid</Badge>
)}
</div> </div>
</SelectItem> </SelectItem>
))} ))}

View File

@ -13,28 +13,23 @@ export const CODE_GENERATION_MODEL_DESCRIPTIONS: {
[key in CodeGenerationModel]: { [key in CodeGenerationModel]: {
name: string; name: string;
inBeta: boolean; inBeta: boolean;
isPaid: boolean;
}; };
} = { } = {
"gpt-4o-2024-05-13": { name: "GPT-4o", inBeta: false, isPaid: false }, "gpt-4o-2024-05-13": { name: "GPT-4o", inBeta: false },
"claude-3-5-sonnet-20240620": { "claude-3-5-sonnet-20240620": {
name: "Claude 3.5 Sonnet", name: "Claude 3.5 Sonnet",
inBeta: false, inBeta: false,
isPaid: false,
}, },
"gpt-4-turbo-2024-04-09": { "gpt-4-turbo-2024-04-09": {
name: "GPT-4 Turbo (deprecated)", name: "GPT-4 Turbo (deprecated)",
inBeta: false, inBeta: false,
isPaid: false,
}, },
gpt_4_vision: { gpt_4_vision: {
name: "GPT-4 Vision (deprecated)", name: "GPT-4 Vision (deprecated)",
inBeta: false, inBeta: false,
isPaid: false,
}, },
claude_3_sonnet: { claude_3_sonnet: {
name: "Claude 3 (deprecated)", name: "Claude 3 (deprecated)",
inBeta: false, inBeta: false,
isPaid: false,
}, },
}; };