diff --git a/frontend/src/components/ChatBox.tsx b/frontend/src/components/ChatBox.tsx index 2732a12eb..f7bfe6848 100644 --- a/frontend/src/components/ChatBox.tsx +++ b/frontend/src/components/ChatBox.tsx @@ -946,30 +946,25 @@ export default function Component({ )} { + onClick={(e) => { + e.preventDefault(); + // Temporarily disabled - remove this condition when re-enabling + /* if (!canUseDocuments) { navigate({ to: "/pricing" }); } else { documentInputRef.current?.click(); } + */ }} - className={cn( - "flex items-center gap-2 group", - !canUseDocuments && "hover:bg-purple-50 dark:hover:bg-purple-950/20" - )} + className={cn("flex items-center gap-2 cursor-not-allowed opacity-50")} + disabled > - Upload Document - {!canUseDocuments && ( - <> - - Pro - - - Upgrade? - - - )} +
+ Upload Document + Temporarily Unavailable +
diff --git a/frontend/src/config/pricingConfig.tsx b/frontend/src/config/pricingConfig.tsx index 04cf4524f..c33254bf4 100644 --- a/frontend/src/config/pricingConfig.tsx +++ b/frontend/src/config/pricingConfig.tsx @@ -43,7 +43,6 @@ export const PRICING_PLANS: PricingPlan[] = [ }, { text: "Rename Chats", included: true, icon: }, { text: "Image Upload", included: false, icon: }, - { text: "Document Upload", included: false, icon: }, { text: "DeepSeek R1 70B", included: false, icon: }, { text: "Gemma 3 27B", included: false, icon: }, { @@ -83,8 +82,7 @@ export const PRICING_PLANS: PricingPlan[] = [ icon: }, { text: "Qwen 2.5 72B", included: false, icon: }, - { text: "Image Upload", included: false, icon: }, - { text: "Document Upload", included: false, icon: } + { text: "Image Upload", included: false, icon: } ], ctaText: "Start Chatting" }, @@ -104,11 +102,6 @@ export const PRICING_PLANS: PricingPlan[] = [ icon: }, { text: "Image Upload", included: true, icon: }, - { - text: "Document Upload", - included: true, - icon: - }, { text: "DeepSeek R1 70B", included: true, @@ -155,11 +148,6 @@ export const PRICING_PLANS: PricingPlan[] = [ icon: }, { text: "Image Upload", included: true, icon: }, - { - text: "Document Upload", - included: true, - icon: - }, { text: "DeepSeek R1 70B", included: true, @@ -215,11 +203,6 @@ export const PRICING_PLANS: PricingPlan[] = [ icon: }, { text: "Image Upload", included: true, icon: }, - { - text: "Document Upload", - included: true, - icon: - }, { text: "DeepSeek R1 70B", included: true, diff --git a/frontend/src/routes/pricing.tsx b/frontend/src/routes/pricing.tsx index cd8fd2dfb..fef8cf170 100644 --- a/frontend/src/routes/pricing.tsx +++ b/frontend/src/routes/pricing.tsx @@ -16,18 +16,6 @@ import { PRICING_PLANS } from "@/config/pricingConfig"; // File type constants for upload features const SUPPORTED_IMAGE_FORMATS = [".jpg", ".png", ".webp"]; -const SUPPORTED_DOCUMENT_FORMATS = [ - ".pdf", - ".doc", - ".docx", - ".txt", - ".rtf", - ".xlsx", - ".xls", - ".pptx", - ".ppt", - ".md" -]; type PricingSearchParams = { selected_plan?: string; @@ -134,30 +122,17 @@ function PricingFAQ() {
- Which file types are supported for document and image upload? + Which file types are supported for image upload?
-

We support a range of file types with potential to add more in the future.

-
- Images: -
    - {SUPPORTED_IMAGE_FORMATS.map((format) => ( -
  • - {format} -
  • - ))} -
-
-
- Documents: -
    - {SUPPORTED_DOCUMENT_FORMATS.map((format) => ( -
  • - {format} -
  • - ))} -
-
+

We support the following image formats:

+
    + {SUPPORTED_IMAGE_FORMATS.map((format) => ( +
  • + {format} +
  • + ))} +

There is a 1 file limit per chat prompt with a 5MB file size limit per file.

diff --git a/frontend/src/routes/teams.tsx b/frontend/src/routes/teams.tsx index 262a49eb6..ffc6a29c3 100644 --- a/frontend/src/routes/teams.tsx +++ b/frontend/src/routes/teams.tsx @@ -90,8 +90,8 @@ function TeamsPage() { />