(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
+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';