We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f1f650e commit 3652473Copy full SHA for 3652473
examples/cohere/src/main.rs
@@ -56,7 +56,7 @@ fn fetch_embeddings(texts: &[&str], input_type: &str) -> Result<Vec<Vec<u8>>, Bo
56
v.as_array()
57
.unwrap()
58
.iter()
59
- .map(|v| v.as_f64().unwrap() as u8)
+ .map(|v| v.as_u64().unwrap().try_into().unwrap())
60
.collect()
61
})
62
.collect();
0 commit comments