Skip to content

Commit 04f94f6

Browse files
fix: truncate on batch
1 parent c7d758d commit 04f94f6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

router/src/server.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ async fn embed(
135135
let local_infer = infer.clone();
136136
futures.push(async move {
137137
let permit = local_infer.acquire_permit().await;
138-
local_infer.embed(input, false, permit).await
138+
local_infer.embed(input, req.truncate, permit).await
139139
})
140140
}
141141
let results = join_all(futures)

0 commit comments

Comments
 (0)