remove unused isPaid label
This commit is contained in:
parent
50d1288693
commit
1a26e325be
@ -11,7 +11,6 @@ import {
|
||||
} from "../lib/models";
|
||||
import { Badge } from "./ui/badge";
|
||||
import { IS_RUNNING_ON_CLOUD } from "../config";
|
||||
import { useStore } from "../store/store";
|
||||
|
||||
interface Props {
|
||||
codeGenerationModel: CodeGenerationModel;
|
||||
@ -24,8 +23,6 @@ function ModelSettingsSection({
|
||||
setCodeGenerationModel,
|
||||
shouldDisableUpdates = false,
|
||||
}: Props) {
|
||||
const subscriberTier = useStore((state) => state.subscriberTier);
|
||||
|
||||
return (
|
||||
<div className="flex flex-col gap-y-2 justify-between text-sm">
|
||||
<div className="grid grid-cols-3 items-center gap-4">
|
||||
@ -58,11 +55,6 @@ function ModelSettingsSection({
|
||||
</Badge>
|
||||
)}
|
||||
</div>
|
||||
{IS_RUNNING_ON_CLOUD &&
|
||||
subscriberTier === "free" &&
|
||||
CODE_GENERATION_MODEL_DESCRIPTIONS[model].isPaid && (
|
||||
<Badge variant="default">Upgrade to Paid</Badge>
|
||||
)}
|
||||
</div>
|
||||
</SelectItem>
|
||||
))}
|
||||
|
||||
@ -13,28 +13,23 @@ export const CODE_GENERATION_MODEL_DESCRIPTIONS: {
|
||||
[key in CodeGenerationModel]: {
|
||||
name: string;
|
||||
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": {
|
||||
name: "Claude 3.5 Sonnet",
|
||||
inBeta: false,
|
||||
isPaid: false,
|
||||
},
|
||||
"gpt-4-turbo-2024-04-09": {
|
||||
name: "GPT-4 Turbo (deprecated)",
|
||||
inBeta: false,
|
||||
isPaid: false,
|
||||
},
|
||||
gpt_4_vision: {
|
||||
name: "GPT-4 Vision (deprecated)",
|
||||
inBeta: false,
|
||||
isPaid: false,
|
||||
},
|
||||
claude_3_sonnet: {
|
||||
name: "Claude 3 (deprecated)",
|
||||
inBeta: false,
|
||||
isPaid: false,
|
||||
},
|
||||
};
|
||||
|
||||
Loading…
Reference in New Issue
Block a user