Skip to content

Commit ef19acd

Browse files
committed
Improved example [skip ci]
1 parent ab2774e commit ef19acd

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

examples/openai/example.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ const input = [
1818
];
1919

2020
const openai = new OpenAI();
21-
const response = await openai.embeddings.create({input: input, model: 'text-embedding-ada-002'});
21+
const response = await openai.embeddings.create({input: input, model: 'text-embedding-3-small'});
2222
const embeddings = response.data.map((v) => v.embedding);
2323

2424
for (let [i, content] of input.entries()) {

0 commit comments

Comments
 (0)