Skip to content

Commit

Permalink
Changes the limits as it was wrongly defined
Browse files Browse the repository at this point in the history
  • Loading branch information
ArhanAnsari committed Aug 15, 2024
1 parent 15f5830 commit d14493a
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions actions/askQuestion.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit d14493a

Please sign in to comment.