mem0ai 2.1.3 → 2.1.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.mts CHANGED
@@ -1,6 +1,8 @@
1
1
  import { PostHog } from 'posthog-js';
2
2
 
3
3
  interface MemoryOptions {
4
+ api_version?: API_VERSION | string;
5
+ version?: API_VERSION | string;
4
6
  user_id?: string;
5
7
  agent_id?: string;
6
8
  app_id?: string;
package/dist/index.d.ts CHANGED
@@ -1,6 +1,8 @@
1
1
  import { PostHog } from 'posthog-js';
2
2
 
3
3
  interface MemoryOptions {
4
+ api_version?: API_VERSION | string;
5
+ version?: API_VERSION | string;
4
6
  user_id?: string;
5
7
  agent_id?: string;
6
8
  app_id?: string;
package/dist/index.js CHANGED
@@ -4536,6 +4536,9 @@ var MemoryClient = class {
4536
4536
  if (options.org_name) delete options.org_name;
4537
4537
  if (options.project_name) delete options.project_name;
4538
4538
  }
4539
+ if (options.api_version) {
4540
+ options.version = options.api_version.toString();
4541
+ }
4539
4542
  const payload = this._preparePayload(messages, options);
4540
4543
  const response = await this._fetchWithErrorHandling(
4541
4544
  `${this.host}/v1/memories/`,