Make V2 Add as Default (#2997)
This commit is contained in:
@@ -409,6 +409,11 @@ mode: "wide"
|
|||||||
|
|
||||||
<Tab title="TypeScript">
|
<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">
|
<Update label="2025-06-17" description="v2.1.31">
|
||||||
**Improvement :**
|
**Improvement :**
|
||||||
- **Client:** Added param `filter_memories`.
|
- **Client:** Added param `filter_memories`.
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "mem0ai",
|
"name": "mem0ai",
|
||||||
"version": "2.1.31",
|
"version": "2.1.32",
|
||||||
"description": "The Memory Layer For Your AI Apps",
|
"description": "The Memory Layer For Your AI Apps",
|
||||||
"main": "./dist/index.js",
|
"main": "./dist/index.js",
|
||||||
"module": "./dist/index.mjs",
|
"module": "./dist/index.mjs",
|
||||||
|
|||||||
@@ -229,7 +229,7 @@ export default class MemoryClient {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (options.api_version) {
|
if (options.api_version) {
|
||||||
options.version = options.api_version.toString();
|
options.version = options.api_version.toString() || "v2";
|
||||||
}
|
}
|
||||||
|
|
||||||
const payload = this._preparePayload(messages, options);
|
const payload = this._preparePayload(messages, options);
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
// @ts-nocheck
|
// @ts-nocheck
|
||||||
import type { TelemetryClient, TelemetryOptions } from "./telemetry.types";
|
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
|
// Safely check for process.env in different environments
|
||||||
let MEM0_TELEMETRY = true;
|
let MEM0_TELEMETRY = true;
|
||||||
|
|||||||
Reference in New Issue
Block a user