Skip to content

Commit 5727e1b

Browse files
author
MohamedAliBouhaouala
committed
fix: remove extra penalty factor validation
1 parent 3672938 commit 5727e1b

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

api/src/chat/services/block.service.ts

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -219,10 +219,6 @@ export class BlockService extends BaseService<
219219
const nluPenaltyFactor: number =
220220
await this.getDefaultNluPenaltyFactor();
221221

222-
if (nluPenaltyFactor < 0 || nluPenaltyFactor > 1) {
223-
throw new Error('Penalty Factor must be between 0 and 1.');
224-
}
225-
226222
// Proceed with matching the best NLP block
227223
if (matchesWithPatterns.length > 0) {
228224
block = (await this.matchBestNLP(

0 commit comments

Comments
 (0)