Use different id for batch vs liveness

This commit is contained in:
ehsanmok 2023-04-27 09:00:14 -07:00
parent 080542dbca
commit 6f608f0d84

View File

@ -5,6 +5,7 @@ use text_generation_client::{
};
const LIVENESS_ID: u64 = u64::MAX;
const BATCH_ID: u64 = u64::MAX - 1;
#[derive(Clone, Debug)]
pub(crate) struct Health {
@ -49,7 +50,7 @@ impl Health {
}),
};
let batch = Batch {
id: u64::MAX,
id: BATCH_ID,
requests: vec![liveness_request],
size: 1,
max_tokens: 2,