@langchain/google-vertexai 0.0.26 → 0.1.0
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/chat_models.cjs +6 -0
- package/dist/chat_models.d.ts +1 -0
- package/dist/chat_models.js +6 -0
- package/dist/llms.cjs +6 -0
- package/dist/llms.d.ts +1 -0
- package/dist/llms.js +6 -0
- package/package.json +10 -18
package/dist/chat_models.cjs
CHANGED
|
@@ -293,6 +293,12 @@ class ChatVertexAI extends google_gauth_1.ChatGoogle {
|
|
|
293
293
|
...fields,
|
|
294
294
|
platformType: "gcp",
|
|
295
295
|
});
|
|
296
|
+
Object.defineProperty(this, "lc_namespace", {
|
|
297
|
+
enumerable: true,
|
|
298
|
+
configurable: true,
|
|
299
|
+
writable: true,
|
|
300
|
+
value: ["langchain", "chat_models", "vertexai"]
|
|
301
|
+
});
|
|
296
302
|
}
|
|
297
303
|
}
|
|
298
304
|
exports.ChatVertexAI = ChatVertexAI;
|
package/dist/chat_models.d.ts
CHANGED
package/dist/chat_models.js
CHANGED
|
@@ -290,5 +290,11 @@ export class ChatVertexAI extends ChatGoogle {
|
|
|
290
290
|
...fields,
|
|
291
291
|
platformType: "gcp",
|
|
292
292
|
});
|
|
293
|
+
Object.defineProperty(this, "lc_namespace", {
|
|
294
|
+
enumerable: true,
|
|
295
|
+
configurable: true,
|
|
296
|
+
writable: true,
|
|
297
|
+
value: ["langchain", "chat_models", "vertexai"]
|
|
298
|
+
});
|
|
293
299
|
}
|
|
294
300
|
}
|
package/dist/llms.cjs
CHANGED
|
@@ -15,6 +15,12 @@ class VertexAI extends google_gauth_1.GoogleLLM {
|
|
|
15
15
|
...fields,
|
|
16
16
|
platformType: "gcp",
|
|
17
17
|
});
|
|
18
|
+
Object.defineProperty(this, "lc_namespace", {
|
|
19
|
+
enumerable: true,
|
|
20
|
+
configurable: true,
|
|
21
|
+
writable: true,
|
|
22
|
+
value: ["langchain", "llms", "vertexai"]
|
|
23
|
+
});
|
|
18
24
|
}
|
|
19
25
|
}
|
|
20
26
|
exports.VertexAI = VertexAI;
|
package/dist/llms.d.ts
CHANGED
|
@@ -9,6 +9,7 @@ export interface VertexAIInput extends GoogleLLMInput {
|
|
|
9
9
|
* the "@langchain/google-gauth" package for auth.
|
|
10
10
|
*/
|
|
11
11
|
export declare class VertexAI extends GoogleLLM {
|
|
12
|
+
lc_namespace: string[];
|
|
12
13
|
static lc_name(): string;
|
|
13
14
|
constructor(fields?: VertexAIInput);
|
|
14
15
|
}
|
package/dist/llms.js
CHANGED
|
@@ -12,5 +12,11 @@ export class VertexAI extends GoogleLLM {
|
|
|
12
12
|
...fields,
|
|
13
13
|
platformType: "gcp",
|
|
14
14
|
});
|
|
15
|
+
Object.defineProperty(this, "lc_namespace", {
|
|
16
|
+
enumerable: true,
|
|
17
|
+
configurable: true,
|
|
18
|
+
writable: true,
|
|
19
|
+
value: ["langchain", "llms", "vertexai"]
|
|
20
|
+
});
|
|
15
21
|
}
|
|
16
22
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@langchain/google-vertexai",
|
|
3
|
-
"version": "0.0
|
|
3
|
+
"version": "0.1.0",
|
|
4
4
|
"description": "LangChain.js support for Google Vertex AI",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"engines": {
|
|
@@ -15,12 +15,7 @@
|
|
|
15
15
|
"homepage": "https://github.com/langchain-ai/langchainjs/tree/main/libs/langchain-google-vertexai/",
|
|
16
16
|
"scripts": {
|
|
17
17
|
"build": "yarn turbo:command build:internal --filter=@langchain/google-vertexai",
|
|
18
|
-
"build:internal": "yarn
|
|
19
|
-
"build:deps": "yarn run turbo:command build --filter=@langchain/google-gauth",
|
|
20
|
-
"build:esm": "NODE_OPTIONS=--max-old-space-size=4096 tsc --outDir dist/ && rm -rf dist/tests dist/**/tests",
|
|
21
|
-
"build:cjs": "NODE_OPTIONS=--max-old-space-size=4096 tsc --outDir dist-cjs/ -p tsconfig.cjs.json && yarn move-cjs-to-dist && rm -rf dist-cjs",
|
|
22
|
-
"build:watch": "yarn create-entrypoints && tsc --outDir dist/ --watch",
|
|
23
|
-
"build:scripts": "yarn create-entrypoints && yarn check-tree-shaking",
|
|
18
|
+
"build:internal": "yarn lc_build --create-entrypoints --pre --tree-shaking",
|
|
24
19
|
"lint:eslint": "NODE_OPTIONS=--max-old-space-size=4096 eslint --cache --ext .ts,.js src/",
|
|
25
20
|
"lint:dpdm": "dpdm --exit-code circular:1 --no-warning --no-tree src/*.ts src/**/*.ts",
|
|
26
21
|
"lint": "yarn lint:eslint && yarn lint:dpdm",
|
|
@@ -31,25 +26,22 @@
|
|
|
31
26
|
"test:watch": "NODE_OPTIONS=--experimental-vm-modules jest --watch --testPathIgnorePatterns=\\.int\\.test.ts",
|
|
32
27
|
"test:single": "NODE_OPTIONS=--experimental-vm-modules yarn run jest --config jest.config.cjs --testTimeout 100000",
|
|
33
28
|
"test:int": "NODE_OPTIONS=--experimental-vm-modules jest --testPathPattern=\\.int\\.test.ts --testTimeout 100000 --maxWorkers=50%",
|
|
34
|
-
"test:standard:unit": "NODE_OPTIONS=--experimental-vm-modules jest --testPathPattern=\\.standard\\.test.ts --testTimeout 100000 --maxWorkers=50%",
|
|
35
|
-
"test:standard:int": "NODE_OPTIONS=--experimental-vm-modules jest --testPathPattern=\\.standard\\.int\\.test.ts --testTimeout 100000 --maxWorkers=50%",
|
|
36
|
-
"test:standard": "yarn test:standard:unit && yarn test:standard:int",
|
|
37
29
|
"format": "prettier --config .prettierrc --write \"src\"",
|
|
38
|
-
"format:check": "prettier --config .prettierrc --check \"src\""
|
|
39
|
-
"move-cjs-to-dist": "yarn lc-build --config ./langchain.config.js --move-cjs-dist",
|
|
40
|
-
"create-entrypoints": "yarn lc-build --config ./langchain.config.js --create-entrypoints",
|
|
41
|
-
"check-tree-shaking": "yarn lc-build --config ./langchain.config.js --tree-shaking"
|
|
30
|
+
"format:check": "prettier --config .prettierrc --check \"src\""
|
|
42
31
|
},
|
|
43
32
|
"author": "LangChain",
|
|
44
33
|
"license": "MIT",
|
|
45
34
|
"dependencies": {
|
|
46
|
-
"@langchain/
|
|
47
|
-
|
|
35
|
+
"@langchain/google-gauth": "~0.1.0"
|
|
36
|
+
},
|
|
37
|
+
"peerDependencies": {
|
|
38
|
+
"@langchain/core": ">=0.2.21 <0.4.0"
|
|
48
39
|
},
|
|
49
40
|
"devDependencies": {
|
|
50
41
|
"@jest/globals": "^29.5.0",
|
|
51
|
-
"@langchain/
|
|
52
|
-
"@langchain/
|
|
42
|
+
"@langchain/core": "workspace:*",
|
|
43
|
+
"@langchain/google-common": "^0.1.0",
|
|
44
|
+
"@langchain/scripts": ">=0.1.0 <0.2.0",
|
|
53
45
|
"@langchain/standard-tests": "0.0.0",
|
|
54
46
|
"@swc/core": "^1.3.90",
|
|
55
47
|
"@swc/jest": "^0.2.29",
|