mirror of
https://github.com/hexastack/hexabot
synced 2025-06-26 18:27:28 +00:00
fix: remove extra penalty factor validation
This commit is contained in:
parent
384e777fa4
commit
40c1349a3c
@ -219,10 +219,6 @@ export class BlockService extends BaseService<
|
||||
const nluPenaltyFactor: number =
|
||||
await this.getDefaultNluPenaltyFactor();
|
||||
|
||||
if (nluPenaltyFactor < 0 || nluPenaltyFactor > 1) {
|
||||
throw new Error('Penalty Factor must be between 0 and 1.');
|
||||
}
|
||||
|
||||
// Proceed with matching the best NLP block
|
||||
if (matchesWithPatterns.length > 0) {
|
||||
block = (await this.matchBestNLP(
|
||||
|
Loading…
Reference in New Issue
Block a user