Skip to content

Commit

Permalink
fix: truncate on batch
Browse files Browse the repository at this point in the history
  • Loading branch information
OlivierDehaene committed Oct 30, 2023
1 parent c7d758d commit 04f94f6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion router/src/server.rs
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ async fn embed(
let local_infer = infer.clone();
futures.push(async move {
let permit = local_infer.acquire_permit().await;
local_infer.embed(input, false, permit).await
local_infer.embed(input, req.truncate, permit).await
})
}
let results = join_all(futures)
Expand Down

0 comments on commit 04f94f6

Please sign in to comment.