mirror of
https://github.com/eliasstepanik/core.git
synced 2026-01-11 18:18:27 +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 }
|
? { name: user.name ?? undefined, userId: user.id }
|
||||||
: undefined;
|
: undefined;
|
||||||
|
|
||||||
return applyLLMReranking(query, results, 10, userContext);
|
return applyLLMReranking(query, results, options.limit, userContext);
|
||||||
}
|
}
|
||||||
|
|
||||||
private async logRecallAsync(
|
private async logRecallAsync(
|
||||||
|
|||||||
@ -650,10 +650,6 @@ export async function deductCredits(
|
|||||||
}),
|
}),
|
||||||
]);
|
]);
|
||||||
} else {
|
} 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