diff --git a/packages/backend/src/api/v1/template-versions.ts b/packages/backend/src/api/v1/template-versions.ts
index 9fab7c50..09d91efe 100644
--- a/packages/backend/src/api/v1/template-versions.ts
+++ b/packages/backend/src/api/v1/template-versions.ts
@@ -38,9 +38,14 @@ versions.get("/latest", async (ctx: Context) => {
}
latestVersion.extra = unCamelObject(latestVersion.extra)
- latestVersion.content = latestVersion.content?.map((c: any) =>
- unCamelObject(c),
- )
+
+ // This makes sure OpenAI messages are not camel cased as used in the app
+ // For example: message.toolCallId instead of message.tool_call_id
+ if (typeof latestVersion.content !== "string") {
+ latestVersion.content = latestVersion.content?.map((c: any) =>
+ unCamelObject(c),
+ )
+ }
ctx.body = latestVersion
})
diff --git a/packages/frontend/components/layout/Paywall.tsx b/packages/frontend/components/layout/Paywall.tsx
index 78b8aa45..56e67f9d 100644
--- a/packages/frontend/components/layout/Paywall.tsx
+++ b/packages/frontend/components/layout/Paywall.tsx
@@ -67,6 +67,11 @@ export default function Paywall({
return children
}
+ // Legacy Unlimited plan has access to all features
+ if (plan === "team" && org?.plan === "unlimited") {
+ return children
+ }
+
const isEnterpriseFeature = plan === "enterprise"
return (
diff --git a/packages/frontend/components/layout/UpgradeModal.tsx b/packages/frontend/components/layout/UpgradeModal.tsx
index a633653d..ad480157 100644
--- a/packages/frontend/components/layout/UpgradeModal.tsx
+++ b/packages/frontend/components/layout/UpgradeModal.tsx
@@ -90,6 +90,16 @@ function RenderPrice({ price, period }) {
)
}
+function AcceptedPayments() {
+ return (
+
+
+
+
+
+ )
+}
+
function RenderPlanCard({
planId,
price,
@@ -401,7 +411,7 @@ export function UpgradePlans({
onClick={() => setShowFeatures(true)}
leftSection={}
>
- Expand features
+ View Features
) : (
@@ -429,31 +439,36 @@ function UpgradeModal({
analytics.track("Upgrade Modal")
}, [])
+ const { org } = useOrg()
+
if (!process.env.NEXT_PUBLIC_STRIPE_PUBLISHABLE_KEY) return null
return (
-
-
- {/* */}
+
+ {/* */}
+ {/* */}
-
+ {/*
10x your AI's performance
{`Unlock powerful features to improve your AI's
quality.`}
-
-
-
+ */}
+ {/* */}
+ {/* */}
-
- Cancel any time with just 1 click. 30 days money-back
- guarantee.
+
+ 30 days money-back guarantee. Cancel any time with just 1
+ click.
-
-
-
+
+
+
+
+ {org?.plan === "free" && }
+
)
}
diff --git a/packages/frontend/public/assets/accepted-cards.webp b/packages/frontend/public/assets/accepted-cards.webp
new file mode 100644
index 00000000..1d346fe0
Binary files /dev/null and b/packages/frontend/public/assets/accepted-cards.webp differ
diff --git a/packages/frontend/public/assets/apple-pay.webp b/packages/frontend/public/assets/apple-pay.webp
new file mode 100644
index 00000000..a7d67cf1
Binary files /dev/null and b/packages/frontend/public/assets/apple-pay.webp differ
diff --git a/packages/frontend/public/assets/google-pay.webp b/packages/frontend/public/assets/google-pay.webp
new file mode 100644
index 00000000..8951082d
Binary files /dev/null and b/packages/frontend/public/assets/google-pay.webp differ