chore: update vercel/ai

This commit is contained in:
Marcus Schiesser
2025-12-02 16:47:29 +08:00
parent 3af5617931
commit fed32ab83d
5 changed files with 47 additions and 32 deletions
+6
View File
@@ -0,0 +1,6 @@
---
"@llamaindex/vercel": patch
"@llamaindex/examples": patch
---
Update vercel/ai
+4 -2
View File
@@ -1,11 +1,13 @@
import { openai } from "@ai-sdk/openai";
import { OpenAIEmbedding } from "@llamaindex/openai";
import { llamaindex } from "@llamaindex/vercel";
import { stepCountIs, streamText } from "ai";
import { Document, VectorStoreIndex } from "llamaindex";
import { Document, Settings, VectorStoreIndex } from "llamaindex";
import fs from "node:fs/promises";
async function main() {
Settings.embedModel = new OpenAIEmbedding();
const path = "node_modules/llamaindex/examples/abramov.txt";
const essay = await fs.readFile(path, "utf-8");
const document = new Document({ text: essay, id_: path });
+3 -3
View File
@@ -7,7 +7,7 @@
"start": "echo 'To get started, run `npx tsx <path to example>`'"
},
"dependencies": {
"@ai-sdk/openai": "^2.0.27",
"@ai-sdk/openai": "^2.0.76",
"@azure/cosmos": "^4.1.1",
"@azure/identity": "^4.4.1",
"@azure/search-documents": "^12.1.0",
@@ -18,7 +18,6 @@
"@llamaindex/bm25-retriever": "^0.0.11",
"@llamaindex/chroma": "^0.0.36",
"@llamaindex/clip": "^0.0.77",
"llama-cloud-services": "^0.3.5",
"@llamaindex/cohere": "^0.0.36",
"@llamaindex/core": "^0.6.22",
"@llamaindex/deepinfra": "^0.0.77",
@@ -61,11 +60,12 @@
"@notionhq/client": "^4.0.0",
"@pinecone-database/pinecone": "^4.0.0",
"@vercel/postgres": "^0.10.0",
"ai": "^5.0.39",
"ai": "^5.0.106",
"ajv": "^8.17.1",
"commander": "^12.1.0",
"dotenv": "^17.2.0",
"js-tiktoken": "^1.0.14",
"llama-cloud-services": "^0.3.5",
"llamaindex": "^0.12.0",
"mongodb": "6.21.0",
"postgres": "^3.4.4",
+1 -1
View File
@@ -40,7 +40,7 @@
},
"devDependencies": {
"@llamaindex/core": "workspace:*",
"ai": "^5.0.39",
"ai": "^5.0.106",
"vitest": "^2.1.5"
},
"peerDependencies": {
+33 -26
View File
@@ -343,8 +343,8 @@ importers:
examples:
dependencies:
'@ai-sdk/openai':
specifier: ^2.0.27
version: 2.0.27(zod@4.1.5)
specifier: ^2.0.76
version: 2.0.76(zod@4.1.5)
'@azure/cosmos':
specifier: ^4.1.1
version: 4.3.0
@@ -502,8 +502,8 @@ importers:
specifier: ^0.10.0
version: 0.10.0
ai:
specifier: ^5.0.39
version: 5.0.39(zod@4.1.5)
specifier: ^5.0.106
version: 5.0.106(zod@4.1.5)
ajv:
specifier: ^8.17.1
version: 8.17.1
@@ -1503,8 +1503,8 @@ importers:
specifier: workspace:*
version: link:../../core
ai:
specifier: ^5.0.39
version: 5.0.39(zod@4.1.5)
specifier: ^5.0.106
version: 5.0.106(zod@4.1.5)
vitest:
specifier: ^2.1.5
version: 2.1.5(@edge-runtime/vm@5.0.0)(@types/node@24.0.13)(happy-dom@17.4.4)(lightningcss@1.29.3)(msw@2.7.4(@types/node@24.0.13)(typescript@5.9.2))(terser@5.39.0)
@@ -1745,17 +1745,17 @@ importers:
packages:
'@ai-sdk/gateway@1.0.20':
resolution: {integrity: sha512-2K0kGnHyLfT1v2+3xXbLqohfWBJ/vmIh1FTWnrvZfvuUuBdOi2DMgnSQzkLvFVLyM8mhOcx+ZwU6IOOsuyOv/w==}
'@ai-sdk/gateway@2.0.18':
resolution: {integrity: sha512-sDQcW+6ck2m0pTIHW6BPHD7S125WD3qNkx/B8sEzJp/hurocmJ5Cni0ybExg6sQMGo+fr/GWOwpHF1cmCdg5rQ==}
engines: {node: '>=18'}
peerDependencies:
zod: ^3.25.76 || ^4
zod: ^3.25.76 || ^4.1.8
'@ai-sdk/openai@2.0.27':
resolution: {integrity: sha512-5fUFBlE9qGFgezVIVkzQk87qZYkxsn5PsedtCFPoGxHK6c2QVYHuD1UcrVIKt0elr043Vx17Xo/gS5oJAR5YEQ==}
'@ai-sdk/openai@2.0.76':
resolution: {integrity: sha512-ryUkhTDVxe3D1GSAGc94vPZsJlSY8ZuBDLkpf4L81Dm7Ik5AgLfhQrZa8+0hD4kp0dxdVaIoxhpa3QOt1CmncA==}
engines: {node: '>=18'}
peerDependencies:
zod: ^3.25.76 || ^4
zod: ^3.25.76 || ^4.1.8
'@ai-sdk/provider-utils@2.2.8':
resolution: {integrity: sha512-fqhG+4sCVv8x7nFzYnFo19ryhAa3w096Kmc3hWxMQfW/TubPOmt3A6tYZhl4mUfQWWQMsuSkLrtjlWuXBVSGQA==}
@@ -1763,11 +1763,11 @@ packages:
peerDependencies:
zod: ^3.23.8
'@ai-sdk/provider-utils@3.0.8':
resolution: {integrity: sha512-cDj1iigu7MW2tgAQeBzOiLhjHOUM9vENsgh4oAVitek0d//WdgfPCsKO3euP7m7LyO/j9a1vr/So+BGNdpFXYw==}
'@ai-sdk/provider-utils@3.0.18':
resolution: {integrity: sha512-ypv1xXMsgGcNKUP+hglKqtdDuMg68nWHucPPAhIENrbFAI+xCHiqPVN8Zllxyv1TNZwGWUghPxJXU+Mqps0YRQ==}
engines: {node: '>=18'}
peerDependencies:
zod: ^3.25.76 || ^4
zod: ^3.25.76 || ^4.1.8
'@ai-sdk/provider@1.1.3':
resolution: {integrity: sha512-qZMxYJ0qqX/RfnuIaab+zp8UAeJn/ygXXAffR5I4N0n1IrvA6qBsjc8hXLmBiMV2zoXlifkacF7sEFnYnjBcqg==}
@@ -5652,6 +5652,10 @@ packages:
'@upstash/vector@1.2.1':
resolution: {integrity: sha512-xKA9qTgbnPsxym/ymgwmaJbJHSTA6b5B1SNyTqJerV8322xn6eJM+p3xZPxKJYDPfSea7RgVxsTkhE9I/mOaOw==}
'@vercel/oidc@3.0.5':
resolution: {integrity: sha512-fnYhv671l+eTTp48gB4zEsTW/YtRgRPnkI2nT7x6qw5rkI1Lq2hTmQIpHPgyThI0znLK+vX2n9XxKdXZ7BUbbw==}
engines: {node: '>= 20'}
'@vercel/postgres@0.10.0':
resolution: {integrity: sha512-fSD23DxGND40IzSkXjcFcxr53t3Tiym59Is0jSYIFpG4/0f0KO9SGtcp1sXiebvPaGe7N/tU05cH4yt2S6/IPg==}
engines: {node: '>=18.14'}
@@ -6009,11 +6013,11 @@ packages:
react:
optional: true
ai@5.0.39:
resolution: {integrity: sha512-1AOjTHY8MUY4T/X/I+otGTbvKmMQCCGWffuVDyQ21l/2Vv/QoLZcw+ZZHVvp+wvQcPOsfXjURGSFZtin7rnghA==}
ai@5.0.106:
resolution: {integrity: sha512-M5obwavxSJJ3tGlAFqI6eltYNJB0D20X6gIBCFx/KVorb/X1fxVVfiZZpZb+Gslu4340droSOjT0aKQFCarNVg==}
engines: {node: '>=18'}
peerDependencies:
zod: ^3.25.76 || ^4
zod: ^3.25.76 || ^4.1.8
ajv-draft-04@1.0.0:
resolution: {integrity: sha512-mv00Te6nmYbRp5DCwclxtt7yV/joXJPGS7nM+97GdxvuttCOfgI3K4U25zboyeX0O+myI8ERluxQe5wljMmVIw==}
@@ -11710,16 +11714,17 @@ packages:
snapshots:
'@ai-sdk/gateway@1.0.20(zod@4.1.5)':
'@ai-sdk/gateway@2.0.18(zod@4.1.5)':
dependencies:
'@ai-sdk/provider': 2.0.0
'@ai-sdk/provider-utils': 3.0.8(zod@4.1.5)
'@ai-sdk/provider-utils': 3.0.18(zod@4.1.5)
'@vercel/oidc': 3.0.5
zod: 4.1.5
'@ai-sdk/openai@2.0.27(zod@4.1.5)':
'@ai-sdk/openai@2.0.76(zod@4.1.5)':
dependencies:
'@ai-sdk/provider': 2.0.0
'@ai-sdk/provider-utils': 3.0.8(zod@4.1.5)
'@ai-sdk/provider-utils': 3.0.18(zod@4.1.5)
zod: 4.1.5
'@ai-sdk/provider-utils@2.2.8(zod@4.1.5)':
@@ -11729,7 +11734,7 @@ snapshots:
secure-json-parse: 2.7.0
zod: 4.1.5
'@ai-sdk/provider-utils@3.0.8(zod@4.1.5)':
'@ai-sdk/provider-utils@3.0.18(zod@4.1.5)':
dependencies:
'@ai-sdk/provider': 2.0.0
'@standard-schema/spec': 1.0.0
@@ -16488,6 +16493,8 @@ snapshots:
'@upstash/vector@1.2.1': {}
'@vercel/oidc@3.0.5': {}
'@vercel/postgres@0.10.0':
dependencies:
'@neondatabase/serverless': 0.9.5
@@ -17001,11 +17008,11 @@ snapshots:
optionalDependencies:
react: 19.0.0
ai@5.0.39(zod@4.1.5):
ai@5.0.106(zod@4.1.5):
dependencies:
'@ai-sdk/gateway': 1.0.20(zod@4.1.5)
'@ai-sdk/gateway': 2.0.18(zod@4.1.5)
'@ai-sdk/provider': 2.0.0
'@ai-sdk/provider-utils': 3.0.8(zod@4.1.5)
'@ai-sdk/provider-utils': 3.0.18(zod@4.1.5)
'@opentelemetry/api': 1.9.0
zod: 4.1.5