@langchain/google-vertexai-web 2.3.4 → 2.3.6
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/CHANGELOG.md +15 -0
- package/README.md +3 -5
- package/dist/chat_models.cjs +2 -3
- package/dist/chat_models.d.cts +0 -2
- package/dist/chat_models.d.cts.map +1 -1
- package/dist/chat_models.d.ts +0 -2
- package/dist/chat_models.d.ts.map +1 -1
- package/dist/chat_models.js +2 -3
- package/dist/embeddings.cjs +1 -2
- package/dist/embeddings.d.cts +0 -2
- package/dist/embeddings.d.cts.map +1 -1
- package/dist/embeddings.d.ts +0 -2
- package/dist/embeddings.d.ts.map +1 -1
- package/dist/embeddings.js +1 -2
- package/dist/llms.cjs +2 -3
- package/dist/llms.d.cts +0 -2
- package/dist/llms.d.cts.map +1 -1
- package/dist/llms.d.ts +0 -2
- package/dist/llms.d.ts.map +1 -1
- package/dist/llms.js +2 -3
- package/package.json +7 -7
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,20 @@
|
|
|
1
1
|
# @langchain/google-vertexai-web
|
|
2
2
|
|
|
3
|
+
## 2.3.6
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#12141](https://github.com/langchain-ai/langchainjs/pull/12141) [`4585842`](https://github.com/langchain-ai/langchainjs/commit/4585842d7e7d04ca14dc8976569c7984ad97218d) Thanks [@hntrl](https://github.com/hntrl)! - Only route Google chat models through the LangSmith gateway when no credentials are passed. Explicit `apiKey`, `authOptions`, `credentials`, or `googleAuthOptions` now go straight to Google.
|
|
8
|
+
- Updated dependencies []:
|
|
9
|
+
- @langchain/google-webauth@2.3.6
|
|
10
|
+
|
|
11
|
+
## 2.3.5
|
|
12
|
+
|
|
13
|
+
### Patch Changes
|
|
14
|
+
|
|
15
|
+
- Updated dependencies []:
|
|
16
|
+
- @langchain/google-webauth@2.3.5
|
|
17
|
+
|
|
3
18
|
## 2.3.4
|
|
4
19
|
|
|
5
20
|
### Patch Changes
|
package/README.md
CHANGED
|
@@ -50,11 +50,9 @@ console.log(response.content);
|
|
|
50
50
|
```
|
|
51
51
|
|
|
52
52
|
Vertex Express requests do not require Google web credentials when a gateway API
|
|
53
|
-
key is configured.
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
OAuth. An explicit `apiKey` takes precedence over the gateway key. An explicit
|
|
57
|
-
`endpoint` opts out of automatic gateway routing and gateway-key selection.
|
|
53
|
+
key is configured. Passing your own credentials (`authOptions` or `apiKey`) or an
|
|
54
|
+
explicit `endpoint` opts out of gateway routing and sends requests straight to
|
|
55
|
+
Vertex AI.
|
|
58
56
|
|
|
59
57
|
Keep gateway API keys in trusted server or edge runtimes, not public browser
|
|
60
58
|
bundles.
|
package/dist/chat_models.cjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
let _langchain_google_webauth = require("@langchain/google-webauth");
|
|
2
|
-
|
|
2
|
+
// src/chat_models.ts
|
|
3
3
|
/**
|
|
4
4
|
* Integration with Google Vertex AI chat models in web environments.
|
|
5
5
|
*
|
|
@@ -303,10 +303,9 @@ var ChatVertexAI = class extends _langchain_google_webauth.ChatGoogle {
|
|
|
303
303
|
...fields,
|
|
304
304
|
platformType: "gcp"
|
|
305
305
|
});
|
|
306
|
-
this._addVersion("@langchain/google-vertexai-web", "2.3.
|
|
306
|
+
this._addVersion("@langchain/google-vertexai-web", "2.3.6");
|
|
307
307
|
}
|
|
308
308
|
};
|
|
309
|
-
//#endregion
|
|
310
309
|
exports.ChatVertexAI = ChatVertexAI;
|
|
311
310
|
|
|
312
311
|
//# sourceMappingURL=chat_models.cjs.map
|
package/dist/chat_models.d.cts
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { ChatGoogle, ChatGoogleInput } from "@langchain/google-webauth";
|
|
2
|
-
//#region src/chat_models.d.ts
|
|
3
2
|
/**
|
|
4
3
|
* Input to a Google Vertex AI chat model class.
|
|
5
4
|
*/
|
|
@@ -295,5 +294,4 @@ export declare class ChatVertexAI extends ChatGoogle {
|
|
|
295
294
|
constructor(model: string, fields?: Omit<ChatVertexAIInput, "model">);
|
|
296
295
|
constructor(fields?: ChatVertexAIInput);
|
|
297
296
|
}
|
|
298
|
-
//#endregion
|
|
299
297
|
//# sourceMappingURL=chat_models.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"chat_models.d.cts","names":[],"sources":["../src/chat_models.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"chat_models.d.cts","names":[],"sources":["../src/chat_models.ts"],"mappings":";;;;iBAKiB,0BAA0B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;qBA+R9B,qBAAqB;EAChC;SAEO;EAIP,YAAY,eAAe,SAAS,KAAK;EACzC,YAAY,SAAS"}
|
package/dist/chat_models.d.ts
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { ChatGoogle, ChatGoogleInput } from "@langchain/google-webauth";
|
|
2
|
-
//#region src/chat_models.d.ts
|
|
3
2
|
/**
|
|
4
3
|
* Input to a Google Vertex AI chat model class.
|
|
5
4
|
*/
|
|
@@ -295,5 +294,4 @@ export declare class ChatVertexAI extends ChatGoogle {
|
|
|
295
294
|
constructor(model: string, fields?: Omit<ChatVertexAIInput, "model">);
|
|
296
295
|
constructor(fields?: ChatVertexAIInput);
|
|
297
296
|
}
|
|
298
|
-
//#endregion
|
|
299
297
|
//# sourceMappingURL=chat_models.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"chat_models.d.ts","names":[],"sources":["../src/chat_models.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"chat_models.d.ts","names":[],"sources":["../src/chat_models.ts"],"mappings":";;;;iBAKiB,0BAA0B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;qBA+R9B,qBAAqB;EAChC;SAEO;EAIP,YAAY,eAAe,SAAS,KAAK;EACzC,YAAY,SAAS"}
|
package/dist/chat_models.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ChatGoogle } from "@langchain/google-webauth";
|
|
2
|
-
|
|
2
|
+
// src/chat_models.ts
|
|
3
3
|
/**
|
|
4
4
|
* Integration with Google Vertex AI chat models in web environments.
|
|
5
5
|
*
|
|
@@ -303,10 +303,9 @@ var ChatVertexAI = class extends ChatGoogle {
|
|
|
303
303
|
...fields,
|
|
304
304
|
platformType: "gcp"
|
|
305
305
|
});
|
|
306
|
-
this._addVersion("@langchain/google-vertexai-web", "2.3.
|
|
306
|
+
this._addVersion("@langchain/google-vertexai-web", "2.3.6");
|
|
307
307
|
}
|
|
308
308
|
};
|
|
309
|
-
//#endregion
|
|
310
309
|
export { ChatVertexAI };
|
|
311
310
|
|
|
312
311
|
//# sourceMappingURL=chat_models.js.map
|
package/dist/embeddings.cjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
let _langchain_google_webauth = require("@langchain/google-webauth");
|
|
2
|
-
|
|
2
|
+
// src/embeddings.ts
|
|
3
3
|
/**
|
|
4
4
|
* Integration with a Google Vertex AI embeddings model using
|
|
5
5
|
* the "@langchain/google-webauth" package for auth.
|
|
@@ -15,7 +15,6 @@ var VertexAIEmbeddings = class extends _langchain_google_webauth.GoogleEmbedding
|
|
|
15
15
|
});
|
|
16
16
|
}
|
|
17
17
|
};
|
|
18
|
-
//#endregion
|
|
19
18
|
exports.VertexAIEmbeddings = VertexAIEmbeddings;
|
|
20
19
|
|
|
21
20
|
//# sourceMappingURL=embeddings.cjs.map
|
package/dist/embeddings.d.cts
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { GoogleEmbeddings, GoogleEmbeddingsInput } from "@langchain/google-webauth";
|
|
2
|
-
//#region src/embeddings.d.ts
|
|
3
2
|
/**
|
|
4
3
|
* Input to a Google Vertex AI embeddings class.
|
|
5
4
|
*/
|
|
@@ -12,5 +11,4 @@ export declare class VertexAIEmbeddings extends GoogleEmbeddings {
|
|
|
12
11
|
static lc_name(): string;
|
|
13
12
|
constructor(fields: GoogleVertexAIEmbeddingsInput);
|
|
14
13
|
}
|
|
15
|
-
//#endregion
|
|
16
14
|
//# sourceMappingURL=embeddings.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"embeddings.d.cts","names":[],"sources":["../src/embeddings.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"embeddings.d.cts","names":[],"sources":["../src/embeddings.ts"],"mappings":";;;;iBAQiB,sCAAsC;;;;;qBAM1C,2BAA2B;SAC/B;EAIP,YAAY,QAAQ"}
|
package/dist/embeddings.d.ts
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { GoogleEmbeddings, GoogleEmbeddingsInput } from "@langchain/google-webauth";
|
|
2
|
-
//#region src/embeddings.d.ts
|
|
3
2
|
/**
|
|
4
3
|
* Input to a Google Vertex AI embeddings class.
|
|
5
4
|
*/
|
|
@@ -12,5 +11,4 @@ export declare class VertexAIEmbeddings extends GoogleEmbeddings {
|
|
|
12
11
|
static lc_name(): string;
|
|
13
12
|
constructor(fields: GoogleVertexAIEmbeddingsInput);
|
|
14
13
|
}
|
|
15
|
-
//#endregion
|
|
16
14
|
//# sourceMappingURL=embeddings.d.ts.map
|
package/dist/embeddings.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"embeddings.d.ts","names":[],"sources":["../src/embeddings.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"embeddings.d.ts","names":[],"sources":["../src/embeddings.ts"],"mappings":";;;;iBAQiB,sCAAsC;;;;;qBAM1C,2BAA2B;SAC/B;EAIP,YAAY,QAAQ"}
|
package/dist/embeddings.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { GoogleEmbeddings } from "@langchain/google-webauth";
|
|
2
|
-
|
|
2
|
+
// src/embeddings.ts
|
|
3
3
|
/**
|
|
4
4
|
* Integration with a Google Vertex AI embeddings model using
|
|
5
5
|
* the "@langchain/google-webauth" package for auth.
|
|
@@ -15,7 +15,6 @@ var VertexAIEmbeddings = class extends GoogleEmbeddings {
|
|
|
15
15
|
});
|
|
16
16
|
}
|
|
17
17
|
};
|
|
18
|
-
//#endregion
|
|
19
18
|
export { VertexAIEmbeddings };
|
|
20
19
|
|
|
21
20
|
//# sourceMappingURL=embeddings.js.map
|
package/dist/llms.cjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
let _langchain_google_webauth = require("@langchain/google-webauth");
|
|
2
|
-
|
|
2
|
+
// src/llms.ts
|
|
3
3
|
/**
|
|
4
4
|
* Integration with a Google Vertex AI LLM using
|
|
5
5
|
* the "@langchain/google-webauth" package for auth.
|
|
@@ -18,10 +18,9 @@ var VertexAI = class extends _langchain_google_webauth.GoogleLLM {
|
|
|
18
18
|
...fields,
|
|
19
19
|
platformType: "gcp"
|
|
20
20
|
});
|
|
21
|
-
this._addVersion("@langchain/google-vertexai-web", "2.3.
|
|
21
|
+
this._addVersion("@langchain/google-vertexai-web", "2.3.6");
|
|
22
22
|
}
|
|
23
23
|
};
|
|
24
|
-
//#endregion
|
|
25
24
|
exports.VertexAI = VertexAI;
|
|
26
25
|
|
|
27
26
|
//# sourceMappingURL=llms.cjs.map
|
package/dist/llms.d.cts
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { GoogleLLM, GoogleLLMInput } from "@langchain/google-webauth";
|
|
2
|
-
//#region src/llms.d.ts
|
|
3
2
|
/**
|
|
4
3
|
* Input to a Google Vertex LLM class.
|
|
5
4
|
*/
|
|
@@ -13,5 +12,4 @@ export declare class VertexAI extends GoogleLLM {
|
|
|
13
12
|
static lc_name(): string;
|
|
14
13
|
constructor(fields?: VertexAIInput);
|
|
15
14
|
}
|
|
16
|
-
//#endregion
|
|
17
15
|
//# sourceMappingURL=llms.d.cts.map
|
package/dist/llms.d.cts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"llms.d.cts","names":[],"sources":["../src/llms.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"llms.d.cts","names":[],"sources":["../src/llms.ts"],"mappings":";;;;iBAKiB,sBAAsB;;;;;qBAM1B,iBAAiB;EAC5B;SAEO;EAIP,YAAY,SAAS"}
|
package/dist/llms.d.ts
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { GoogleLLM, GoogleLLMInput } from "@langchain/google-webauth";
|
|
2
|
-
//#region src/llms.d.ts
|
|
3
2
|
/**
|
|
4
3
|
* Input to a Google Vertex LLM class.
|
|
5
4
|
*/
|
|
@@ -13,5 +12,4 @@ export declare class VertexAI extends GoogleLLM {
|
|
|
13
12
|
static lc_name(): string;
|
|
14
13
|
constructor(fields?: VertexAIInput);
|
|
15
14
|
}
|
|
16
|
-
//#endregion
|
|
17
15
|
//# sourceMappingURL=llms.d.ts.map
|
package/dist/llms.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"llms.d.ts","names":[],"sources":["../src/llms.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"llms.d.ts","names":[],"sources":["../src/llms.ts"],"mappings":";;;;iBAKiB,sBAAsB;;;;;qBAM1B,iBAAiB;EAC5B;SAEO;EAIP,YAAY,SAAS"}
|
package/dist/llms.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { GoogleLLM } from "@langchain/google-webauth";
|
|
2
|
-
|
|
2
|
+
// src/llms.ts
|
|
3
3
|
/**
|
|
4
4
|
* Integration with a Google Vertex AI LLM using
|
|
5
5
|
* the "@langchain/google-webauth" package for auth.
|
|
@@ -18,10 +18,9 @@ var VertexAI = class extends GoogleLLM {
|
|
|
18
18
|
...fields,
|
|
19
19
|
platformType: "gcp"
|
|
20
20
|
});
|
|
21
|
-
this._addVersion("@langchain/google-vertexai-web", "2.3.
|
|
21
|
+
this._addVersion("@langchain/google-vertexai-web", "2.3.6");
|
|
22
22
|
}
|
|
23
23
|
};
|
|
24
|
-
//#endregion
|
|
25
24
|
export { VertexAI };
|
|
26
25
|
|
|
27
26
|
//# sourceMappingURL=llms.js.map
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@langchain/google-vertexai-web",
|
|
3
|
-
"version": "2.3.
|
|
3
|
+
"version": "2.3.6",
|
|
4
4
|
"description": "LangChain.js support for Google Vertex AI Web",
|
|
5
5
|
"author": "LangChain",
|
|
6
6
|
"license": "MIT",
|
|
@@ -14,18 +14,18 @@
|
|
|
14
14
|
},
|
|
15
15
|
"homepage": "https://github.com/langchain-ai/langchainjs/tree/main/libs/providers/langchain-google-vertexai-web/",
|
|
16
16
|
"dependencies": {
|
|
17
|
-
"@langchain/google-webauth": "2.3.
|
|
17
|
+
"@langchain/google-webauth": "2.3.6"
|
|
18
18
|
},
|
|
19
19
|
"devDependencies": {
|
|
20
20
|
"@tsconfig/recommended": "^1.0.3",
|
|
21
|
-
"dotenv": "^
|
|
21
|
+
"dotenv": "^18.0.9",
|
|
22
22
|
"dpdm": "^4.3.0",
|
|
23
23
|
"typescript": "~7.0.2",
|
|
24
|
-
"vitest": "^5.0.
|
|
24
|
+
"vitest": "^5.0.5",
|
|
25
25
|
"zod": "^3.25.76",
|
|
26
|
-
"@langchain/google-common": "2.3.
|
|
27
|
-
"@langchain/
|
|
28
|
-
"@langchain/
|
|
26
|
+
"@langchain/google-common": "2.3.6",
|
|
27
|
+
"@langchain/tsconfig": "0.0.1",
|
|
28
|
+
"@langchain/standard-tests": "0.0.23"
|
|
29
29
|
},
|
|
30
30
|
"publishConfig": {
|
|
31
31
|
"access": "public"
|