Skip to content

armgit / mem0

Public Imported from GitHub
0

The Memory Layer for AI Agents - Drop-in memory infrastructure for AI agents and apps. Context that persists. Built for production.

Make V2 Add as Default (#2997)

Saket Aryan2754f4538780
diff --git a/docs/changelog.mdx b/docs/changelog.mdx
index 266238747..d06db95c8 100644
--- a/docs/changelog.mdx
+++ b/docs/changelog.mdx
@@ -409,6 +409,11 @@ mode: "wide"
<Tab title="TypeScript">
+<Update label="2025-06-20" description="v2.1.32">
+**Improvement :**
+- **Client:** Made `api_version` V2 as default.
+</Update>
+
<Update label="2025-06-17" description="v2.1.31">
**Improvement :**
- **Client:** Added param `filter_memories`.
diff --git a/mem0-ts/package.json b/mem0-ts/package.json
index 68c8172ba..c4914b118 100644
--- a/mem0-ts/package.json
+++ b/mem0-ts/package.json
@@ -1,6 +1,6 @@
{
"name": "mem0ai",
- "version": "2.1.31",
+ "version": "2.1.32",
"description": "The Memory Layer For Your AI Apps",
"main": "./dist/index.js",
"module": "./dist/index.mjs",
diff --git a/mem0-ts/src/client/mem0.ts b/mem0-ts/src/client/mem0.ts
index cff41c0c1..43d38f472 100644
--- a/mem0-ts/src/client/mem0.ts
+++ b/mem0-ts/src/client/mem0.ts
@@ -229,7 +229,7 @@ export default class MemoryClient {
}
if (options.api_version) {
- options.version = options.api_version.toString();
+ options.version = options.api_version.toString() || "v2";
}
const payload = this._preparePayload(messages, options);
diff --git a/mem0-ts/src/client/telemetry.ts b/mem0-ts/src/client/telemetry.ts
index f7b5cd448..5f69d4d7b 100644
--- a/mem0-ts/src/client/telemetry.ts
+++ b/mem0-ts/src/client/telemetry.ts
@@ -1,7 +1,7 @@
// @ts-nocheck
import type { TelemetryClient, TelemetryOptions } from "./telemetry.types";
-let version = "2.1.26";
+let version = "2.1.32";
// Safely check for process.env in different environments
let MEM0_TELEMETRY = true;