Fix top_p validation message

This commit is contained in:
Nick Hill 2022-12-04 11:33:00 -08:00
parent 1747365e25
commit 1963f0e1bb

View File

@ -155,7 +155,7 @@ type ValidationRequest = (
pub enum ValidationError { pub enum ValidationError {
#[error("temperature must be strictly positive")] #[error("temperature must be strictly positive")]
Temperature, Temperature,
#[error("top_p must be >= 0.0 or < 1.0")] #[error("top_p must be > 0.0 and <= 1.0")]
TopP, TopP,
#[error("top_k must be strictly positive")] #[error("top_k must be strictly positive")]
TopK, TopK,