fix: remove harcoded limit

This commit is contained in:
Harshith Mullapudi 2025-10-06 13:56:09 +05:30
parent f5873ced15
commit 42951e8463
2 changed files with 1 additions and 5 deletions

View File

@ -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(

View File

@ -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.",
);
}
}
}