mirror of
https://github.com/huggingface/text-generation-inference.git
synced 2025-09-11 12:24:53 +00:00
Fix x-compute-time header.
This commit is contained in:
parent
b6922d48de
commit
1e284eb178
@ -239,7 +239,7 @@ async fn generate(
|
|||||||
headers.insert("x-compute-type", compute_type.parse().unwrap());
|
headers.insert("x-compute-type", compute_type.parse().unwrap());
|
||||||
headers.insert(
|
headers.insert(
|
||||||
"x-compute-time",
|
"x-compute-time",
|
||||||
total_time.as_millis().to_string().parse().unwrap(),
|
total_time.as_secs_f64().to_string().parse().unwrap(),
|
||||||
);
|
);
|
||||||
headers.insert(
|
headers.insert(
|
||||||
"x-compute-characters",
|
"x-compute-characters",
|
||||||
|
Loading…
Reference in New Issue
Block a user