diff --git a/docs/changelog.mdx b/docs/changelog.mdx index 209ac2a1..65e5a5dd 100644 --- a/docs/changelog.mdx +++ b/docs/changelog.mdx @@ -209,6 +209,11 @@ mode: "wide" + +**Improvements:** +- **OSS SDK:** Bumped version of `@anthropic-ai/sdk` to `0.40.1` + + **Improvements:** - **Client:** Fixed `organizationId` and `projectId` being asssigned to default in `ping` method diff --git a/mem0-ts/package.json b/mem0-ts/package.json index b7c0aa00..3a2647cd 100644 --- a/mem0-ts/package.json +++ b/mem0-ts/package.json @@ -1,6 +1,6 @@ { "name": "mem0ai", - "version": "2.1.20", + "version": "2.1.21", "description": "The Memory Layer For Your AI Apps", "main": "./dist/index.js", "module": "./dist/index.mjs", @@ -97,7 +97,7 @@ "zod": "^3.24.1" }, "peerDependencies": { - "@anthropic-ai/sdk": "0.18.0", + "@anthropic-ai/sdk": "^0.40.1", "@google/genai": "^0.7.0", "@mistralai/mistralai": "^1.5.2", "@qdrant/js-client-rest": "1.13.0", diff --git a/mem0-ts/pnpm-lock.yaml b/mem0-ts/pnpm-lock.yaml index f9012f08..1212314a 100644 --- a/mem0-ts/pnpm-lock.yaml +++ b/mem0-ts/pnpm-lock.yaml @@ -8,8 +8,8 @@ importers: .: dependencies: "@anthropic-ai/sdk": - specifier: 0.18.0 - version: 0.18.0(encoding@0.1.13) + specifier: 0.40.1 + version: 0.40.1(encoding@0.1.13) "@google/genai": specifier: ^0.7.0 version: 0.7.0(encoding@0.1.13) @@ -110,10 +110,10 @@ packages: } engines: { node: ">=6.0.0" } - "@anthropic-ai/sdk@0.18.0": + "@anthropic-ai/sdk@0.40.1": resolution: { - integrity: sha512-3XsWEn/4nPGRd4AdSguugbSDFy6Z2AWTNOeI3iK+aV22+w23+vY9CEb3Hiy0kvKIQuxSmZz/+5WKC8nPWy8gVg==, + integrity: sha512-DJMWm8lTEM9Lk/MSFL+V+ugF7jKOn0M2Ujvb5fN8r2nY14aHbGPZ1k6sgjL+tpJ3VuOGJNG+4R83jEpOuYPv8w==, } "@babel/code-frame@7.26.2": @@ -4875,17 +4875,15 @@ snapshots: "@jridgewell/gen-mapping": 0.3.8 "@jridgewell/trace-mapping": 0.3.25 - "@anthropic-ai/sdk@0.18.0(encoding@0.1.13)": + "@anthropic-ai/sdk@0.40.1(encoding@0.1.13)": dependencies: "@types/node": 18.19.76 "@types/node-fetch": 2.6.12 abort-controller: 3.0.0 agentkeepalive: 4.6.0 - digest-fetch: 1.3.0 form-data-encoder: 1.7.2 formdata-node: 4.4.1 node-fetch: 2.7.0(encoding@0.1.13) - web-streams-polyfill: 3.3.3 transitivePeerDependencies: - encoding diff --git a/mem0-ts/src/oss/src/vector_stores/pgvector.ts b/mem0-ts/src/oss/src/vector_stores/pgvector.ts index 4dd98893..9c1b0034 100644 --- a/mem0-ts/src/oss/src/vector_stores/pgvector.ts +++ b/mem0-ts/src/oss/src/vector_stores/pgvector.ts @@ -22,7 +22,7 @@ export class PGVector implements VectorStore { private config: PGVectorConfig; constructor(config: PGVectorConfig) { - this.collectionName = config.collectionName; + this.collectionName = config.collectionName || "memories"; this.useDiskann = config.diskann || false; this.useHnsw = config.hnsw || false; this.dbName = config.dbname || "vector_store";