diff --git a/src/detokenization.rs b/src/detokenization.rs index 5e3e64d..644fc10 100644 --- a/src/detokenization.rs +++ b/src/detokenization.rs @@ -46,7 +46,7 @@ impl<'a> Task for TaskDetokenization<'a> { ) -> reqwest::RequestBuilder { let body = BodyDetokenization { model, - token_ids: &self.token_ids, + token_ids: self.token_ids, }; client.post(format!("{base}/detokenize")).json(&body) } diff --git a/src/tokenization.rs b/src/tokenization.rs index e4fc2a2..e552622 100644 --- a/src/tokenization.rs +++ b/src/tokenization.rs @@ -78,7 +78,7 @@ impl Task for TaskTokenization<'_> { ) -> reqwest::RequestBuilder { let body = BodyTokenization { model, - prompt: &self.prompt, + prompt: self.prompt, tokens: self.tokens, token_ids: self.token_ids, };