@langchain/google-vertexai-web 0.0.26 → 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- 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 +11 -14
package/dist/chat_models.cjs
CHANGED
@@ -296,6 +296,12 @@ class ChatVertexAI extends google_webauth_1.ChatGoogle {
|
|
296
296
|
...fields,
|
297
297
|
platformType: "gcp",
|
298
298
|
});
|
299
|
+
Object.defineProperty(this, "lc_namespace", {
|
300
|
+
enumerable: true,
|
301
|
+
configurable: true,
|
302
|
+
writable: true,
|
303
|
+
value: ["langchain", "chat_models", "vertexai"]
|
304
|
+
});
|
299
305
|
}
|
300
306
|
}
|
301
307
|
exports.ChatVertexAI = ChatVertexAI;
|
package/dist/chat_models.d.ts
CHANGED
package/dist/chat_models.js
CHANGED
@@ -293,5 +293,11 @@ export class ChatVertexAI extends 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
|
}
|
package/dist/llms.cjs
CHANGED
@@ -15,6 +15,12 @@ class VertexAI extends google_webauth_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-webauth" 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-web",
|
3
|
-
"version": "0.0
|
3
|
+
"version": "0.1.0",
|
4
4
|
"description": "LangChain.js support for Google Vertex AI Web",
|
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-web/",
|
16
16
|
"scripts": {
|
17
17
|
"build": "yarn turbo:command build:internal --filter=@langchain/google-vertexai-web",
|
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",
|
@@ -32,20 +27,22 @@
|
|
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
29
|
"format": "prettier --config .prettierrc --write \"src\"",
|
35
|
-
"format:check": "prettier --config .prettierrc --check \"src\""
|
36
|
-
"move-cjs-to-dist": "yarn lc-build --config ./langchain.config.js --move-cjs-dist",
|
37
|
-
"create-entrypoints": "yarn lc-build --config ./langchain.config.js --create-entrypoints",
|
38
|
-
"check-tree-shaking": "yarn lc-build --config ./langchain.config.js --tree-shaking"
|
30
|
+
"format:check": "prettier --config .prettierrc --check \"src\""
|
39
31
|
},
|
40
32
|
"author": "LangChain",
|
41
33
|
"license": "MIT",
|
42
34
|
"dependencies": {
|
43
|
-
"@langchain/
|
44
|
-
|
35
|
+
"@langchain/google-webauth": "~0.1.0"
|
36
|
+
},
|
37
|
+
"peerDependencies": {
|
38
|
+
"@langchain/core": ">=0.2.21 <0.4.0"
|
45
39
|
},
|
46
40
|
"devDependencies": {
|
47
41
|
"@jest/globals": "^29.5.0",
|
48
|
-
"@langchain/
|
42
|
+
"@langchain/core": "workspace:*",
|
43
|
+
"@langchain/google-common": "^0.1.0",
|
44
|
+
"@langchain/scripts": ">=0.1.0 <0.2.0",
|
45
|
+
"@langchain/standard-tests": "0.0.0",
|
49
46
|
"@swc/core": "^1.3.90",
|
50
47
|
"@swc/jest": "^0.2.29",
|
51
48
|
"@tsconfig/recommended": "^1.0.3",
|