Skip to content

Commit 8750b4a

Browse files
committed
Improved formatting [skip ci]
1 parent f2f3d8d commit 8750b4a

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

examples/cohere/example.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,9 @@ async function fetchEmbeddings(texts, inputType) {
1919
inputType: inputType,
2020
embeddingTypes: ['ubinary']
2121
});
22-
return response.embeddings.ubinary.map((e) => e.map((v) => v.toString(2).padStart(8, '0')).join(''));
22+
return response.embeddings.ubinary.map((e) => {
23+
return e.map((v) => v.toString(2).padStart(8, '0')).join('')
24+
});
2325
}
2426

2527
const input = [

0 commit comments

Comments
 (0)