From 40c1349a3cae2705a373c46193ea5660e9dcc994 Mon Sep 17 00:00:00 2001 From: MohamedAliBouhaouala Date: Mon, 28 Apr 2025 17:20:25 +0100 Subject: [PATCH] fix: remove extra penalty factor validation --- api/src/chat/services/block.service.ts | 4 ---- 1 file changed, 4 deletions(-) diff --git a/api/src/chat/services/block.service.ts b/api/src/chat/services/block.service.ts index 6d9c29d3..80240320 100644 --- a/api/src/chat/services/block.service.ts +++ b/api/src/chat/services/block.service.ts @@ -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(