@langchain/google-vertexai-web 0.0.21 → 0.0.25

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.
@@ -3,7 +3,8 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.ChatVertexAI = void 0;
4
4
  const google_webauth_1 = require("@langchain/google-webauth");
5
5
  /**
6
- * Integration with a chat model.
6
+ * Integration with a Google Vertex AI chat model using
7
+ * the "@langchain/google-webauth" package for auth.
7
8
  */
8
9
  class ChatVertexAI extends google_webauth_1.ChatGoogle {
9
10
  static lc_name() {
@@ -1,11 +1,12 @@
1
1
  import { type ChatGoogleInput, ChatGoogle } from "@langchain/google-webauth";
2
2
  /**
3
- * Input to chat model class.
3
+ * Input to a Google Vertex AI chat model class.
4
4
  */
5
5
  export interface ChatVertexAIInput extends ChatGoogleInput {
6
6
  }
7
7
  /**
8
- * Integration with a chat model.
8
+ * Integration with a Google Vertex AI chat model using
9
+ * the "@langchain/google-webauth" package for auth.
9
10
  */
10
11
  export declare class ChatVertexAI extends ChatGoogle {
11
12
  static lc_name(): string;
@@ -1,6 +1,7 @@
1
1
  import { ChatGoogle } from "@langchain/google-webauth";
2
2
  /**
3
- * Integration with a chat model.
3
+ * Integration with a Google Vertex AI chat model using
4
+ * the "@langchain/google-webauth" package for auth.
4
5
  */
5
6
  export class ChatVertexAI extends ChatGoogle {
6
7
  static lc_name() {
@@ -0,0 +1,20 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.VertexAIEmbeddings = void 0;
4
+ const google_webauth_1 = require("@langchain/google-webauth");
5
+ /**
6
+ * Integration with a Google Vertex AI embeddings model using
7
+ * the "@langchain/google-webauth" package for auth.
8
+ */
9
+ class VertexAIEmbeddings extends google_webauth_1.GoogleEmbeddings {
10
+ static lc_name() {
11
+ return "VertexAIEmbeddings";
12
+ }
13
+ constructor(fields) {
14
+ super({
15
+ ...fields,
16
+ platformType: "gcp",
17
+ });
18
+ }
19
+ }
20
+ exports.VertexAIEmbeddings = VertexAIEmbeddings;
@@ -0,0 +1,14 @@
1
+ import { type GoogleEmbeddingsInput, GoogleEmbeddings } from "@langchain/google-webauth";
2
+ /**
3
+ * Input to a Google Vertex AI embeddings class.
4
+ */
5
+ export interface GoogleVertexAIEmbeddingsInput extends GoogleEmbeddingsInput {
6
+ }
7
+ /**
8
+ * Integration with a Google Vertex AI embeddings model using
9
+ * the "@langchain/google-webauth" package for auth.
10
+ */
11
+ export declare class VertexAIEmbeddings extends GoogleEmbeddings {
12
+ static lc_name(): string;
13
+ constructor(fields: GoogleVertexAIEmbeddingsInput);
14
+ }
@@ -0,0 +1,16 @@
1
+ import { GoogleEmbeddings, } from "@langchain/google-webauth";
2
+ /**
3
+ * Integration with a Google Vertex AI embeddings model using
4
+ * the "@langchain/google-webauth" package for auth.
5
+ */
6
+ export class VertexAIEmbeddings extends GoogleEmbeddings {
7
+ static lc_name() {
8
+ return "VertexAIEmbeddings";
9
+ }
10
+ constructor(fields) {
11
+ super({
12
+ ...fields,
13
+ platformType: "gcp",
14
+ });
15
+ }
16
+ }
package/dist/index.cjs CHANGED
@@ -16,3 +16,4 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
17
  __exportStar(require("./chat_models.cjs"), exports);
18
18
  __exportStar(require("./llms.cjs"), exports);
19
+ __exportStar(require("./embeddings.cjs"), exports);
package/dist/index.d.ts CHANGED
@@ -1,2 +1,3 @@
1
1
  export * from "./chat_models.js";
2
2
  export * from "./llms.js";
3
+ export * from "./embeddings.js";
package/dist/index.js CHANGED
@@ -1,2 +1,3 @@
1
1
  export * from "./chat_models.js";
2
2
  export * from "./llms.js";
3
+ export * from "./embeddings.js";
package/dist/llms.cjs CHANGED
@@ -3,7 +3,8 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.VertexAI = void 0;
4
4
  const google_webauth_1 = require("@langchain/google-webauth");
5
5
  /**
6
- * Integration with a LLM model.
6
+ * Integration with a Google Vertex AI LLM using
7
+ * the "@langchain/google-webauth" package for auth.
7
8
  */
8
9
  class VertexAI extends google_webauth_1.GoogleLLM {
9
10
  static lc_name() {
package/dist/llms.d.ts CHANGED
@@ -1,11 +1,12 @@
1
1
  import { type GoogleLLMInput, GoogleLLM } from "@langchain/google-webauth";
2
2
  /**
3
- * Input to LLM model class.
3
+ * Input to a Google Vertex LLM class.
4
4
  */
5
5
  export interface VertexAIInput extends GoogleLLMInput {
6
6
  }
7
7
  /**
8
- * Integration with a LLM model.
8
+ * Integration with a Google Vertex AI LLM using
9
+ * the "@langchain/google-webauth" package for auth.
9
10
  */
10
11
  export declare class VertexAI extends GoogleLLM {
11
12
  static lc_name(): string;
package/dist/llms.js CHANGED
@@ -1,6 +1,7 @@
1
1
  import { GoogleLLM } from "@langchain/google-webauth";
2
2
  /**
3
- * Integration with a LLM model.
3
+ * Integration with a Google Vertex AI LLM using
4
+ * the "@langchain/google-webauth" package for auth.
4
5
  */
5
6
  export class VertexAI extends GoogleLLM {
6
7
  static lc_name() {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@langchain/google-vertexai-web",
3
- "version": "0.0.21",
3
+ "version": "0.0.25",
4
4
  "description": "LangChain.js support for Google Vertex AI Web",
5
5
  "type": "module",
6
6
  "engines": {
@@ -40,8 +40,8 @@
40
40
  "author": "LangChain",
41
41
  "license": "MIT",
42
42
  "dependencies": {
43
- "@langchain/core": ">0.1.56 <0.3.0",
44
- "@langchain/google-webauth": "~0.0.21"
43
+ "@langchain/core": ">=0.2.21 <0.3.0",
44
+ "@langchain/google-webauth": "~0.0.25"
45
45
  },
46
46
  "devDependencies": {
47
47
  "@jest/globals": "^29.5.0",
@@ -62,7 +62,7 @@
62
62
  "jest": "^29.5.0",
63
63
  "jest-environment-node": "^29.6.4",
64
64
  "prettier": "^2.8.3",
65
- "release-it": "^15.10.1",
65
+ "release-it": "^17.6.0",
66
66
  "rollup": "^4.5.2",
67
67
  "ts-jest": "^29.1.0",
68
68
  "typescript": "<5.2.0",