Bumped Anthropic SDK Version (#2598)

This commit is contained in:
Saket Aryan
2025-05-01 02:32:59 +05:30
committed by GitHub
parent ad98f542f8
commit 42c98e5717
4 changed files with 13 additions and 10 deletions

View File

@@ -209,6 +209,11 @@ mode: "wide"
<Tab title="TypeScript"> <Tab title="TypeScript">
<Update label="2025-05-01" description="v2.1.21">
**Improvements:**
- **OSS SDK:** Bumped version of `@anthropic-ai/sdk` to `0.40.1`
</Update>
<Update label="2025-04-28" description="v2.1.20"> <Update label="2025-04-28" description="v2.1.20">
**Improvements:** **Improvements:**
- **Client:** Fixed `organizationId` and `projectId` being asssigned to default in `ping` method - **Client:** Fixed `organizationId` and `projectId` being asssigned to default in `ping` method

View File

@@ -1,6 +1,6 @@
{ {
"name": "mem0ai", "name": "mem0ai",
"version": "2.1.20", "version": "2.1.21",
"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",
@@ -97,7 +97,7 @@
"zod": "^3.24.1" "zod": "^3.24.1"
}, },
"peerDependencies": { "peerDependencies": {
"@anthropic-ai/sdk": "0.18.0", "@anthropic-ai/sdk": "^0.40.1",
"@google/genai": "^0.7.0", "@google/genai": "^0.7.0",
"@mistralai/mistralai": "^1.5.2", "@mistralai/mistralai": "^1.5.2",
"@qdrant/js-client-rest": "1.13.0", "@qdrant/js-client-rest": "1.13.0",

12
mem0-ts/pnpm-lock.yaml generated
View File

@@ -8,8 +8,8 @@ importers:
.: .:
dependencies: dependencies:
"@anthropic-ai/sdk": "@anthropic-ai/sdk":
specifier: 0.18.0 specifier: 0.40.1
version: 0.18.0(encoding@0.1.13) version: 0.40.1(encoding@0.1.13)
"@google/genai": "@google/genai":
specifier: ^0.7.0 specifier: ^0.7.0
version: 0.7.0(encoding@0.1.13) version: 0.7.0(encoding@0.1.13)
@@ -110,10 +110,10 @@ packages:
} }
engines: { node: ">=6.0.0" } engines: { node: ">=6.0.0" }
"@anthropic-ai/sdk@0.18.0": "@anthropic-ai/sdk@0.40.1":
resolution: resolution:
{ {
integrity: sha512-3XsWEn/4nPGRd4AdSguugbSDFy6Z2AWTNOeI3iK+aV22+w23+vY9CEb3Hiy0kvKIQuxSmZz/+5WKC8nPWy8gVg==, integrity: sha512-DJMWm8lTEM9Lk/MSFL+V+ugF7jKOn0M2Ujvb5fN8r2nY14aHbGPZ1k6sgjL+tpJ3VuOGJNG+4R83jEpOuYPv8w==,
} }
"@babel/code-frame@7.26.2": "@babel/code-frame@7.26.2":
@@ -4875,17 +4875,15 @@ snapshots:
"@jridgewell/gen-mapping": 0.3.8 "@jridgewell/gen-mapping": 0.3.8
"@jridgewell/trace-mapping": 0.3.25 "@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: dependencies:
"@types/node": 18.19.76 "@types/node": 18.19.76
"@types/node-fetch": 2.6.12 "@types/node-fetch": 2.6.12
abort-controller: 3.0.0 abort-controller: 3.0.0
agentkeepalive: 4.6.0 agentkeepalive: 4.6.0
digest-fetch: 1.3.0
form-data-encoder: 1.7.2 form-data-encoder: 1.7.2
formdata-node: 4.4.1 formdata-node: 4.4.1
node-fetch: 2.7.0(encoding@0.1.13) node-fetch: 2.7.0(encoding@0.1.13)
web-streams-polyfill: 3.3.3
transitivePeerDependencies: transitivePeerDependencies:
- encoding - encoding

View File

@@ -22,7 +22,7 @@ export class PGVector implements VectorStore {
private config: PGVectorConfig; private config: PGVectorConfig;
constructor(config: PGVectorConfig) { constructor(config: PGVectorConfig) {
this.collectionName = config.collectionName; this.collectionName = config.collectionName || "memories";
this.useDiskann = config.diskann || false; this.useDiskann = config.diskann || false;
this.useHnsw = config.hnsw || false; this.useHnsw = config.hnsw || false;
this.dbName = config.dbname || "vector_store"; this.dbName = config.dbname || "vector_store";