(fix): added version=v2 as default param in ai sdk add calls (#3540)
This commit is contained in:
@@ -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,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",
|
||||
|
||||
@@ -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';
|
||||
|
||||
Reference in New Issue
Block a user