From b04702283994415c2f9db139f933a627e5e47096 Mon Sep 17 00:00:00 2001 From: declark1 Date: Thu, 23 May 2024 23:31:13 -0700 Subject: [PATCH] Fix chunk offset Signed-off-by: declark1 --- src/orchestrator.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/orchestrator.rs b/src/orchestrator.rs index df0b900e..3625ead2 100644 --- a/src/orchestrator.rs +++ b/src/orchestrator.rs @@ -294,7 +294,7 @@ async fn handle_chunk_task( .results .into_iter() .map(|token| Chunk { - offset, + offset: offset + token.start as usize, text: token.text, }) .collect::>();