Skip to content

Commit

Permalink
feat: remove custom models paywall (#434)
Browse files Browse the repository at this point in the history
  • Loading branch information
hughcrt authored Jul 19, 2024
1 parent 8171313 commit 5dd36bc
Showing 1 changed file with 13 additions and 26 deletions.
39 changes: 13 additions & 26 deletions packages/frontend/pages/settings/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -192,6 +192,19 @@ export default function AppAnalytics() {

{user.role !== "viewer" && <Keys />}

<SettingsCard title={<>Custom Models 🧠</>} align="start">
<Button
color="blue"
variant="default"
component={Link}
data-testid="add-model-button"
href={`/settings/models`}
leftSection={<IconPencil size={16} />}
>
Edit Mappings
</Button>
</SettingsCard>

<SettingsCard
title={<>Smart Data Filtering ✨</>}
align="start"
Expand Down Expand Up @@ -237,32 +250,6 @@ export default function AppAnalytics() {
</Button>
</Flex>
</SettingsCard>
<SettingsCard
title={<>Custom Models 🧠</>}
align="start"
paywallConfig={{
Icon: IconFilter,
feature: "Custom Models",
p: 12,
plan: "enterprise",
list: [
"Use custom models for evaluations",
"Add and overwrite cost mappings",
],
enabled: true,
}}
>
<Button
color="blue"
variant="default"
component={Link}
data-testid="add-model-button"
href={`/settings/models`}
leftSection={<IconPencil size={16} />}
>
Edit Mappings
</Button>
</SettingsCard>

{user && hasAccess(user.role, "projects", "delete") && (
<SettingsCard title="Danger Zone" align="start">
Expand Down

0 comments on commit 5dd36bc

Please sign in to comment.