Skip to content

Commit fed32ab

Browse files
chore: update vercel/ai
1 parent 3af5617 commit fed32ab

File tree

5 files changed

+47
-32
lines changed

5 files changed

+47
-32
lines changed

.changeset/afraid-camels-taste.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
---
2+
"@llamaindex/vercel": patch
3+
"@llamaindex/examples": patch
4+
---
5+
6+
Update vercel/ai

examples/models/vercel/vector-store.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,13 @@
11
import { openai } from "@ai-sdk/openai";
2+
import { OpenAIEmbedding } from "@llamaindex/openai";
23
import { llamaindex } from "@llamaindex/vercel";
34
import { stepCountIs, streamText } from "ai";
4-
import { Document, VectorStoreIndex } from "llamaindex";
5-
5+
import { Document, Settings, VectorStoreIndex } from "llamaindex";
66
import fs from "node:fs/promises";
77

88
async function main() {
9+
Settings.embedModel = new OpenAIEmbedding();
10+
911
const path = "node_modules/llamaindex/examples/abramov.txt";
1012
const essay = await fs.readFile(path, "utf-8");
1113
const document = new Document({ text: essay, id_: path });

examples/package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
"start": "echo 'To get started, run `npx tsx <path to example>`'"
88
},
99
"dependencies": {
10-
"@ai-sdk/openai": "^2.0.27",
10+
"@ai-sdk/openai": "^2.0.76",
1111
"@azure/cosmos": "^4.1.1",
1212
"@azure/identity": "^4.4.1",
1313
"@azure/search-documents": "^12.1.0",
@@ -18,7 +18,6 @@
1818
"@llamaindex/bm25-retriever": "^0.0.11",
1919
"@llamaindex/chroma": "^0.0.36",
2020
"@llamaindex/clip": "^0.0.77",
21-
"llama-cloud-services": "^0.3.5",
2221
"@llamaindex/cohere": "^0.0.36",
2322
"@llamaindex/core": "^0.6.22",
2423
"@llamaindex/deepinfra": "^0.0.77",
@@ -61,11 +60,12 @@
6160
"@notionhq/client": "^4.0.0",
6261
"@pinecone-database/pinecone": "^4.0.0",
6362
"@vercel/postgres": "^0.10.0",
64-
"ai": "^5.0.39",
63+
"ai": "^5.0.106",
6564
"ajv": "^8.17.1",
6665
"commander": "^12.1.0",
6766
"dotenv": "^17.2.0",
6867
"js-tiktoken": "^1.0.14",
68+
"llama-cloud-services": "^0.3.5",
6969
"llamaindex": "^0.12.0",
7070
"mongodb": "6.21.0",
7171
"postgres": "^3.4.4",

packages/providers/vercel/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@
4040
},
4141
"devDependencies": {
4242
"@llamaindex/core": "workspace:*",
43-
"ai": "^5.0.39",
43+
"ai": "^5.0.106",
4444
"vitest": "^2.1.5"
4545
},
4646
"peerDependencies": {

pnpm-lock.yaml

Lines changed: 33 additions & 26 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)