Skip to content

Commit

Permalink
Improved example [skip ci]
Browse files Browse the repository at this point in the history
  • Loading branch information
ankane committed Jul 16, 2024
1 parent f1f650e commit 3652473
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/cohere/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ fn fetch_embeddings(texts: &[&str], input_type: &str) -> Result<Vec<Vec<u8>>, Bo
v.as_array()
.unwrap()
.iter()
.map(|v| v.as_f64().unwrap() as u8)
.map(|v| v.as_u64().unwrap().try_into().unwrap())
.collect()
})
.collect();
Expand Down

0 comments on commit 3652473

Please sign in to comment.