diff --git a/apps/webapp/app/services/search.server.ts b/apps/webapp/app/services/search.server.ts index 7ff8072..42fbf35 100644 --- a/apps/webapp/app/services/search.server.ts +++ b/apps/webapp/app/services/search.server.ts @@ -260,7 +260,7 @@ export class SearchService { ? { name: user.name ?? undefined, userId: user.id } : undefined; - return applyLLMReranking(query, results, 10, userContext); + return applyLLMReranking(query, results, options.limit, userContext); } private async logRecallAsync( diff --git a/apps/webapp/app/trigger/utils/utils.ts b/apps/webapp/app/trigger/utils/utils.ts index 0b28584..282a63d 100644 --- a/apps/webapp/app/trigger/utils/utils.ts +++ b/apps/webapp/app/trigger/utils/utils.ts @@ -650,10 +650,6 @@ export async function deductCredits( }), ]); } else { - // Free plan - throw error - throw new InsufficientCreditsError( - "Insufficient credits. Please upgrade to Pro or Max plan to continue.", - ); } } }