From d14493a8bc62853f1cc5c90c6ec196aff8bba3f1 Mon Sep 17 00:00:00 2001 From: Arhan Ansari Date: Thu, 15 Aug 2024 14:14:13 +0000 Subject: [PATCH] Changes the limits as it was wrongly defined --- actions/askQuestion.ts | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/actions/askQuestion.ts b/actions/askQuestion.ts index 6d5183e..5ade72b 100644 --- a/actions/askQuestion.ts +++ b/actions/askQuestion.ts @@ -6,8 +6,11 @@ import { auth } from "@clerk/nextjs/server"; import { getOpenAiModel } from "./generateEmbeddings"; import { generateLangchainCompletion } from "@/lib/langchain"; -const PRO_LIMIT = 20; -const FREE_LIMIT = 2; +//Limit for asking questions +//For PRO users, the limit is 100 +//For FREE users, the limit is 3 +const PRO_LIMIT = 100; +const FREE_LIMIT = 3; export async function askQuestion({ id,