mirror of
https://github.com/eliasstepanik/core.git
synced 2026-01-10 08:48:29 +00:00
fix: remove harcoded limit
This commit is contained in:
parent
f5873ced15
commit
42951e8463
@ -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(
|
||||
|
||||
@ -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.",
|
||||
);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user