(fix): added version=v2 as default param in ai sdk add calls (#3540)

This commit is contained in:
Saket Aryan
2025-10-05 02:16:02 +05:30
committed by GitHub
parent fbf3bd640c
commit 8ba032e029
3 changed files with 7 additions and 2 deletions
+5
View File
@@ -1123,6 +1123,11 @@ mode: "wide"
<Tab title="Vercel AI SDK">
<Update label="2025-09-25" description="v2.0.4">
**Bug Fix:**
- **Vercel AI SDK:** Fixed version parameter in the AI SDK to use V2 for addition.
</Update>
<Update label="2025-09-25" description="v2.0.3">
**New Features:**
- **Vercel AI SDK:** Added file support for multimodal capabilities with memory context
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "@mem0/vercel-ai-provider",
"version": "2.0.3",
"version": "2.0.4",
"description": "Vercel AI Provider for providing memory to LLMs",
"main": "./dist/index.js",
"module": "./dist/index.mjs",
+1 -1
View File
@@ -337,7 +337,7 @@ const updateMemories = async (messages: Array<Message>, config?: Mem0ConfigSetti
Authorization: `Token ${apiKey}`,
'Content-Type': 'application/json'
},
body: JSON.stringify({messages, ...config}),
body: JSON.stringify({messages, ...config, version: "v2"}),
};
const baseUrl = config?.host || 'https://api.mem0.ai';