Skip to content

Commit

Permalink
Update example to new model.
Browse files Browse the repository at this point in the history
  • Loading branch information
lgrammel committed Jan 25, 2024
1 parent de3a9f0 commit b71a854
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/basic/src/model-function/embed-example.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ dotenv.config();

async function main() {
const embedding = await embed({
model: openai.TextEmbedder({ model: "text-embedding-ada-002" }),
model: openai.TextEmbedder({ model: "text-embedding-3-small" }),
value: "At first, Nox didn't know what to do with the pup.",
});

Expand Down

0 comments on commit b71a854

Please sign in to comment.