Fix router input validation for SKIP_TOKENIZER_IN_TGI=true (#267)

Signed-off-by: yuanwu <yuan.wu@intel.com>
This commit is contained in:
Yuan Wu 2025-01-21 17:08:53 +08:00 committed by GitHub
parent 6d6acca5eb
commit 7d106477d6
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -330,7 +330,7 @@ impl Validation {
}
Ok(Some(value))
})
.unwrap_or(Ok(None))?;
.unwrap_or(Ok(Some(self.max_input_length)))?;
// Validate inputs
let (inputs, input_ids, input_length, max_new_tokens) = self