diff --git a/.changeset/five-ties-happen.md b/.changeset/five-ties-happen.md new file mode 100644 index 0000000000000000000000000000000000000000..2af74f88ece7a843b6819569542d7d99354422f6 --- /dev/null +++ b/.changeset/five-ties-happen.md @@ -0,0 +1,5 @@ +--- +"create-llama": patch +--- + +fix: vercel ai update crash sending annotations diff --git a/templates/types/streaming/express/package.json b/templates/types/streaming/express/package.json index 569a69867c0ea7e628e29f3275e9bebbb7c72906..26741e8d7c7522e497336fcab922c23db870409a 100644 --- a/templates/types/streaming/express/package.json +++ b/templates/types/streaming/express/package.json @@ -15,7 +15,7 @@ "dev": "concurrently \"tsup index.ts --format esm --dts --watch\" \"nodemon --watch dist/index.js\"" }, "dependencies": { - "ai": "^3.0.21", + "ai": "3.0.21", "cors": "^2.8.5", "dotenv": "^16.3.1", "duck-duck-scrape": "^2.2.5", diff --git a/templates/types/streaming/nextjs/app/components/chat-section.tsx b/templates/types/streaming/nextjs/app/components/chat-section.tsx index 7fcf188d75e41c4f17419389259bf133da2ed954..e7e489ba1a54cd655acf9824be624d64da88f32d 100644 --- a/templates/types/streaming/nextjs/app/components/chat-section.tsx +++ b/templates/types/streaming/nextjs/app/components/chat-section.tsx @@ -29,6 +29,7 @@ export default function ChatSection() { const message = JSON.parse(error.message); alert(message.detail); }, + sendExtraMessageFields: true, }); return ( diff --git a/templates/types/streaming/nextjs/package.json b/templates/types/streaming/nextjs/package.json index 8d81b32d84bdc5429def123cc2186fb0863c6922..fea9676eb7b4de5076f63829c9b7992ef307d011 100644 --- a/templates/types/streaming/nextjs/package.json +++ b/templates/types/streaming/nextjs/package.json @@ -17,7 +17,7 @@ "@radix-ui/react-hover-card": "^1.0.7", "@radix-ui/react-select": "^2.1.1", "@radix-ui/react-slot": "^1.0.2", - "ai": "^3.0.21", + "ai": "3.0.21", "ajv": "^8.12.0", "class-variance-authority": "^0.7.0", "clsx": "^2.1.1",