Skip to content

Commit

Permalink
remove superflous referenc
Browse files Browse the repository at this point in the history
  • Loading branch information
markus klein committed Nov 30, 2023
1 parent fce2cfa commit a6a013a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/detokenization.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
Expand Down
2 changes: 1 addition & 1 deletion src/tokenization.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
};
Expand Down

0 comments on commit a6a013a

Please sign in to comment.