Remove -1 from batch id and add a note

This commit is contained in:
ehsanmok 2023-04-27 09:49:15 -07:00
parent 22119ca19f
commit e603406327

View File

@ -4,8 +4,9 @@ use text_generation_client::{
Batch, NextTokenChooserParameters, Request, ShardedClient, StoppingCriteriaParameters,
};
// Note: Request ids and batch ids cannot collide.
const LIVENESS_ID: u64 = u64::MAX;
const BATCH_ID: u64 = u64::MAX - 1;
const BATCH_ID: u64 = u64::MAX;
#[derive(Clone, Debug)]
pub(crate) struct Health {