@ai-sdk/google-vertex 3.0.135 → 3.0.137

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.
@@ -0,0 +1,151 @@
1
+ // src/xai/google-vertex-xai-provider-node.ts
2
+ import { resolve } from "@ai-sdk/provider-utils";
3
+
4
+ // src/google-vertex-auth-google-auth-library.ts
5
+ import { GoogleAuth } from "google-auth-library";
6
+ var authInstance = null;
7
+ var authOptions = null;
8
+ function getAuth(options) {
9
+ if (!authInstance || options !== authOptions) {
10
+ authInstance = new GoogleAuth({
11
+ scopes: ["https://www.googleapis.com/auth/cloud-platform"],
12
+ ...options
13
+ });
14
+ authOptions = options;
15
+ }
16
+ return authInstance;
17
+ }
18
+ async function generateAuthToken(options) {
19
+ const auth = getAuth(options || {});
20
+ const client = await auth.getClient();
21
+ const token = await client.getAccessToken();
22
+ return (token == null ? void 0 : token.token) || null;
23
+ }
24
+
25
+ // src/xai/google-vertex-xai-provider.ts
26
+ import {
27
+ NoSuchModelError
28
+ } from "@ai-sdk/provider";
29
+ import {
30
+ createOpenAICompatible
31
+ } from "@ai-sdk/openai-compatible";
32
+ import {
33
+ loadOptionalSetting,
34
+ loadSetting,
35
+ withoutTrailingSlash
36
+ } from "@ai-sdk/provider-utils";
37
+ function convertGoogleVertexXaiUsage(usage) {
38
+ var _a, _b, _c, _d, _e, _f, _g;
39
+ if (usage == null) {
40
+ return {
41
+ inputTokens: void 0,
42
+ outputTokens: void 0,
43
+ totalTokens: void 0,
44
+ reasoningTokens: void 0,
45
+ cachedInputTokens: void 0
46
+ };
47
+ }
48
+ const promptTokens = (_a = usage.prompt_tokens) != null ? _a : void 0;
49
+ const completionTokens = (_b = usage.completion_tokens) != null ? _b : void 0;
50
+ const cachedInputTokens = (_d = (_c = usage.prompt_tokens_details) == null ? void 0 : _c.cached_tokens) != null ? _d : void 0;
51
+ const reasoningTokens = (_f = (_e = usage.completion_tokens_details) == null ? void 0 : _e.reasoning_tokens) != null ? _f : void 0;
52
+ const outputTokens = completionTokens == null && reasoningTokens == null ? void 0 : (completionTokens != null ? completionTokens : 0) + (reasoningTokens != null ? reasoningTokens : 0);
53
+ return {
54
+ inputTokens: promptTokens,
55
+ outputTokens,
56
+ totalTokens: (_g = usage.total_tokens) != null ? _g : void 0,
57
+ reasoningTokens,
58
+ cachedInputTokens
59
+ };
60
+ }
61
+ function transformGoogleVertexXaiRequestBody(args) {
62
+ const transformedArgs = { ...args };
63
+ delete transformedArgs.reasoning_effort;
64
+ return transformedArgs;
65
+ }
66
+ function createGoogleVertexXai(options = {}) {
67
+ const loadLocation = () => loadOptionalSetting({
68
+ settingValue: options.location,
69
+ environmentVariableName: "GOOGLE_VERTEX_LOCATION"
70
+ });
71
+ const loadProject = () => loadSetting({
72
+ settingValue: options.project,
73
+ settingName: "project",
74
+ environmentVariableName: "GOOGLE_VERTEX_PROJECT",
75
+ description: "Google Vertex project"
76
+ });
77
+ const constructBaseURL = () => {
78
+ var _a;
79
+ const projectId = loadProject();
80
+ const location = (_a = loadLocation()) != null ? _a : "global";
81
+ return `https://aiplatform.googleapis.com/v1/projects/${projectId}/locations/${location}/endpoints/openapi`;
82
+ };
83
+ const loadBaseURL = () => {
84
+ var _a;
85
+ return withoutTrailingSlash((_a = options.baseURL) != null ? _a : "") || constructBaseURL();
86
+ };
87
+ let cachedProvider;
88
+ const getProvider = () => cachedProvider != null ? cachedProvider : cachedProvider = createOpenAICompatible({
89
+ name: "googleVertex.xai",
90
+ baseURL: loadBaseURL(),
91
+ fetch: options.fetch,
92
+ includeUsage: true,
93
+ supportsStructuredOutputs: true,
94
+ supportedUrls: () => ({
95
+ "image/*": [/^https?:\/\/.*$/]
96
+ }),
97
+ transformRequestBody: transformGoogleVertexXaiRequestBody,
98
+ convertUsage: convertGoogleVertexXaiUsage
99
+ });
100
+ const createChatModel = (modelId) => getProvider().languageModel(modelId);
101
+ const provider = function(modelId) {
102
+ if (new.target) {
103
+ throw new Error(
104
+ "The Google Vertex xAI model function cannot be called with the new keyword."
105
+ );
106
+ }
107
+ return createChatModel(modelId);
108
+ };
109
+ provider.specificationVersion = "v2";
110
+ provider.languageModel = createChatModel;
111
+ provider.chatModel = (modelId) => getProvider().chatModel(modelId);
112
+ provider.textEmbeddingModel = (modelId) => {
113
+ throw new NoSuchModelError({ modelId, modelType: "textEmbeddingModel" });
114
+ };
115
+ provider.imageModel = (modelId) => {
116
+ throw new NoSuchModelError({ modelId, modelType: "imageModel" });
117
+ };
118
+ return provider;
119
+ }
120
+
121
+ // src/xai/google-vertex-xai-provider-node.ts
122
+ function createGoogleVertexXai2(options = {}) {
123
+ const customFetch = async (url, init) => {
124
+ var _a;
125
+ const token = await generateAuthToken(options.googleAuthOptions);
126
+ const resolvedHeaders = await resolve(options.headers);
127
+ const authHeaders = {
128
+ ...resolvedHeaders,
129
+ Authorization: `Bearer ${token}`
130
+ };
131
+ const fetchInit = {
132
+ ...init,
133
+ headers: {
134
+ ...init == null ? void 0 : init.headers,
135
+ ...authHeaders
136
+ }
137
+ };
138
+ return ((_a = options.fetch) != null ? _a : fetch)(url, fetchInit);
139
+ };
140
+ return createGoogleVertexXai({
141
+ ...options,
142
+ fetch: customFetch,
143
+ headers: void 0
144
+ });
145
+ }
146
+ var googleVertexXai = createGoogleVertexXai2();
147
+ export {
148
+ createGoogleVertexXai2 as createGoogleVertexXai,
149
+ googleVertexXai
150
+ };
151
+ //# sourceMappingURL=index.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../src/xai/google-vertex-xai-provider-node.ts","../../src/google-vertex-auth-google-auth-library.ts","../../src/xai/google-vertex-xai-provider.ts"],"sourcesContent":["import { resolve, type FetchFunction } from '@ai-sdk/provider-utils';\nimport type { GoogleAuthOptions } from 'google-auth-library';\nimport { generateAuthToken } from '../google-vertex-auth-google-auth-library';\nimport {\n createGoogleVertexXai as createGoogleVertexXaiOriginal,\n type GoogleVertexXaiProvider,\n type GoogleVertexXaiProviderSettings as GoogleVertexXaiProviderSettingsOriginal,\n} from './google-vertex-xai-provider';\nexport type { GoogleVertexXaiProvider };\n\nexport interface GoogleVertexXaiProviderSettings extends GoogleVertexXaiProviderSettingsOriginal {\n /**\n * Optional. The Authentication options provided by google-auth-library.\n * Complete list of authentication options is documented in the\n * GoogleAuthOptions interface:\n * https://github.com/googleapis/google-auth-library-nodejs/blob/main/src/auth/googleauth.ts.\n */\n googleAuthOptions?: GoogleAuthOptions;\n}\n\n/**\n * Create a Google Vertex AI xAI provider instance for Node.js.\n * Uses the OpenAI-compatible Chat Completions API for Grok partner models.\n * Automatically handles Google Cloud authentication.\n *\n * @see https://cloud.google.com/vertex-ai/generative-ai/docs/partner-models/grok\n */\nexport function createGoogleVertexXai(\n options: GoogleVertexXaiProviderSettings = {},\n): GoogleVertexXaiProvider {\n const customFetch: FetchFunction = async (url, init) => {\n const token = await generateAuthToken(options.googleAuthOptions);\n const resolvedHeaders = await resolve(options.headers);\n const authHeaders = {\n ...resolvedHeaders,\n Authorization: `Bearer ${token}`,\n };\n\n const fetchInit = {\n ...init,\n headers: {\n ...init?.headers,\n ...authHeaders,\n },\n };\n\n return (options.fetch ?? fetch)(url, fetchInit);\n };\n\n return createGoogleVertexXaiOriginal({\n ...options,\n fetch: customFetch,\n headers: undefined,\n });\n}\n\n/**\n * Default Google Vertex AI xAI provider instance for Node.js.\n */\nexport const googleVertexXai = createGoogleVertexXai();\n","import { type GoogleAuthOptions, GoogleAuth } from 'google-auth-library';\n\nlet authInstance: GoogleAuth | null = null;\nlet authOptions: GoogleAuthOptions | null = null;\n\nfunction getAuth(options: GoogleAuthOptions) {\n if (!authInstance || options !== authOptions) {\n authInstance = new GoogleAuth({\n scopes: ['https://www.googleapis.com/auth/cloud-platform'],\n ...options,\n });\n authOptions = options;\n }\n return authInstance;\n}\n\nexport async function generateAuthToken(options?: GoogleAuthOptions) {\n const auth = getAuth(options || {});\n const client = await auth.getClient();\n const token = await client.getAccessToken();\n return token?.token || null;\n}\n\n// For testing purposes only\nexport function _resetAuthInstance() {\n authInstance = null;\n}\n","import {\n NoSuchModelError,\n type LanguageModelV2,\n type LanguageModelV2Usage,\n type ProviderV2,\n} from '@ai-sdk/provider';\nimport {\n createOpenAICompatible,\n type OpenAICompatibleProvider,\n} from '@ai-sdk/openai-compatible';\nimport {\n loadOptionalSetting,\n loadSetting,\n withoutTrailingSlash,\n type FetchFunction,\n type Resolvable,\n} from '@ai-sdk/provider-utils';\nimport type { GoogleVertexXaiModelId } from './google-vertex-xai-options';\n\nexport interface GoogleVertexXaiProvider extends ProviderV2 {\n /**\n * Creates a model for text generation.\n */\n (modelId: GoogleVertexXaiModelId): LanguageModelV2;\n\n /**\n * Creates a model for text generation.\n */\n languageModel(modelId: GoogleVertexXaiModelId): LanguageModelV2;\n\n /**\n * Creates a chat model for text generation.\n */\n chatModel(modelId: GoogleVertexXaiModelId): LanguageModelV2;\n\n /**\n * Creates a text embedding model.\n */\n textEmbeddingModel(modelId: string): never;\n}\n\nexport interface GoogleVertexXaiProviderSettings {\n /**\n * Google Cloud project ID. Defaults to the value of the `GOOGLE_VERTEX_PROJECT` environment variable.\n */\n project?: string;\n\n /**\n * Google Cloud location/region. Defaults to the value of the `GOOGLE_VERTEX_LOCATION` environment variable.\n * Use 'global' for the global endpoint.\n */\n location?: string;\n\n /**\n * Base URL for the API calls. If not provided, will be constructed from project and location.\n */\n baseURL?: string;\n\n /**\n * Headers to use for requests. Can be:\n * - A headers object\n * - A Promise that resolves to a headers object\n * - A function that returns a headers object\n * - A function that returns a Promise of a headers object\n */\n headers?: Resolvable<Record<string, string | undefined>>;\n\n /**\n * Custom fetch implementation. You can use it as a middleware to intercept requests,\n * or to provide a custom fetch implementation for e.g. testing.\n */\n fetch?: FetchFunction;\n}\n\ntype GoogleVertexXaiUsage =\n | {\n prompt_tokens?: number | null;\n completion_tokens?: number | null;\n total_tokens?: number | null;\n prompt_tokens_details?: {\n cached_tokens?: number | null;\n } | null;\n completion_tokens_details?: {\n reasoning_tokens?: number | null;\n } | null;\n }\n | undefined\n | null;\n\nfunction convertGoogleVertexXaiUsage(\n usage: GoogleVertexXaiUsage,\n): LanguageModelV2Usage {\n if (usage == null) {\n return {\n inputTokens: undefined,\n outputTokens: undefined,\n totalTokens: undefined,\n reasoningTokens: undefined,\n cachedInputTokens: undefined,\n };\n }\n\n const promptTokens = usage.prompt_tokens ?? undefined;\n const completionTokens = usage.completion_tokens ?? undefined;\n const cachedInputTokens =\n usage.prompt_tokens_details?.cached_tokens ?? undefined;\n const reasoningTokens =\n usage.completion_tokens_details?.reasoning_tokens ?? undefined;\n const outputTokens =\n completionTokens == null && reasoningTokens == null\n ? undefined\n : (completionTokens ?? 0) + (reasoningTokens ?? 0);\n\n return {\n inputTokens: promptTokens,\n outputTokens,\n totalTokens: usage.total_tokens ?? undefined,\n reasoningTokens,\n cachedInputTokens,\n };\n}\n\nfunction transformGoogleVertexXaiRequestBody(args: Record<string, any>) {\n const transformedArgs = { ...args };\n delete transformedArgs.reasoning_effort;\n return transformedArgs;\n}\n\n/**\n * Create a Google Vertex AI xAI provider instance.\n * Uses the OpenAI-compatible Chat Completions API for Grok partner models.\n *\n * @see https://cloud.google.com/vertex-ai/generative-ai/docs/partner-models/grok\n */\nexport function createGoogleVertexXai(\n options: GoogleVertexXaiProviderSettings = {},\n): GoogleVertexXaiProvider {\n const loadLocation = () =>\n loadOptionalSetting({\n settingValue: options.location,\n environmentVariableName: 'GOOGLE_VERTEX_LOCATION',\n });\n\n const loadProject = () =>\n loadSetting({\n settingValue: options.project,\n settingName: 'project',\n environmentVariableName: 'GOOGLE_VERTEX_PROJECT',\n description: 'Google Vertex project',\n });\n\n const constructBaseURL = () => {\n const projectId = loadProject();\n const location = loadLocation() ?? 'global';\n\n return `https://aiplatform.googleapis.com/v1/projects/${projectId}/locations/${location}/endpoints/openapi`;\n };\n\n const loadBaseURL = () =>\n withoutTrailingSlash(options.baseURL ?? '') || constructBaseURL();\n\n let cachedProvider:\n | OpenAICompatibleProvider<GoogleVertexXaiModelId, string, string, string>\n | undefined;\n const getProvider = () =>\n (cachedProvider ??= createOpenAICompatible({\n name: 'googleVertex.xai',\n baseURL: loadBaseURL(),\n fetch: options.fetch,\n includeUsage: true,\n supportsStructuredOutputs: true,\n supportedUrls: () => ({\n 'image/*': [/^https?:\\/\\/.*$/],\n }),\n transformRequestBody: transformGoogleVertexXaiRequestBody,\n convertUsage: convertGoogleVertexXaiUsage,\n }));\n\n const createChatModel = (modelId: GoogleVertexXaiModelId) =>\n getProvider().languageModel(modelId);\n\n const provider = function (modelId: GoogleVertexXaiModelId) {\n if (new.target) {\n throw new Error(\n 'The Google Vertex xAI model function cannot be called with the new keyword.',\n );\n }\n\n return createChatModel(modelId);\n };\n\n provider.specificationVersion = 'v2' as const;\n provider.languageModel = createChatModel;\n provider.chatModel = (modelId: GoogleVertexXaiModelId) =>\n getProvider().chatModel(modelId);\n provider.textEmbeddingModel = (modelId: string): never => {\n throw new NoSuchModelError({ modelId, modelType: 'textEmbeddingModel' });\n };\n provider.imageModel = (modelId: string): never => {\n throw new NoSuchModelError({ modelId, modelType: 'imageModel' });\n };\n\n return provider;\n}\n"],"mappings":";AAAA,SAAS,eAAmC;;;ACA5C,SAAiC,kBAAkB;AAEnD,IAAI,eAAkC;AACtC,IAAI,cAAwC;AAE5C,SAAS,QAAQ,SAA4B;AAC3C,MAAI,CAAC,gBAAgB,YAAY,aAAa;AAC5C,mBAAe,IAAI,WAAW;AAAA,MAC5B,QAAQ,CAAC,gDAAgD;AAAA,MACzD,GAAG;AAAA,IACL,CAAC;AACD,kBAAc;AAAA,EAChB;AACA,SAAO;AACT;AAEA,eAAsB,kBAAkB,SAA6B;AACnE,QAAM,OAAO,QAAQ,WAAW,CAAC,CAAC;AAClC,QAAM,SAAS,MAAM,KAAK,UAAU;AACpC,QAAM,QAAQ,MAAM,OAAO,eAAe;AAC1C,UAAO,+BAAO,UAAS;AACzB;;;ACrBA;AAAA,EACE;AAAA,OAIK;AACP;AAAA,EACE;AAAA,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;AAAA,EAChD;AAEA,SAAO,sBAA8B;AAAA,IACnC,GAAG;AAAA,IACH,OAAO;AAAA,IACP,SAAS;AAAA,EACX,CAAC;AACH;AAKO,IAAM,kBAAkBA,uBAAsB;","names":["createGoogleVertexXai"]}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ai-sdk/google-vertex",
3
- "version": "3.0.135",
3
+ "version": "3.0.137",
4
4
  "license": "Apache-2.0",
5
5
  "sideEffects": false,
6
6
  "main": "./dist/index.js",
@@ -13,7 +13,9 @@
13
13
  "anthropic/edge.d.ts",
14
14
  "anthropic/index.d.ts",
15
15
  "maas/edge.d.ts",
16
- "maas/index.d.ts"
16
+ "maas/index.d.ts",
17
+ "xai/edge.d.ts",
18
+ "xai/index.d.ts"
17
19
  ],
18
20
  "exports": {
19
21
  "./package.json": "./package.json",
@@ -46,13 +48,23 @@
46
48
  "types": "./dist/maas/edge/index.d.ts",
47
49
  "import": "./dist/maas/edge/index.mjs",
48
50
  "require": "./dist/maas/edge/index.js"
51
+ },
52
+ "./xai": {
53
+ "types": "./dist/xai/index.d.ts",
54
+ "import": "./dist/xai/index.mjs",
55
+ "require": "./dist/xai/index.js"
56
+ },
57
+ "./xai/edge": {
58
+ "types": "./dist/xai/edge/index.d.ts",
59
+ "import": "./dist/xai/edge/index.mjs",
60
+ "require": "./dist/xai/edge/index.js"
49
61
  }
50
62
  },
51
63
  "dependencies": {
52
64
  "google-auth-library": "^10.5.0",
53
65
  "@ai-sdk/anthropic": "2.0.79",
54
66
  "@ai-sdk/google": "2.0.72",
55
- "@ai-sdk/openai-compatible": "1.0.38",
67
+ "@ai-sdk/openai-compatible": "1.0.39",
56
68
  "@ai-sdk/provider": "2.0.3",
57
69
  "@ai-sdk/provider-utils": "3.0.25"
58
70
  },
@@ -61,8 +73,8 @@
61
73
  "tsup": "^8",
62
74
  "typescript": "5.8.3",
63
75
  "zod": "3.25.76",
64
- "@ai-sdk/test-server": "0.0.4",
65
- "@vercel/ai-tsconfig": "0.0.0"
76
+ "@vercel/ai-tsconfig": "0.0.0",
77
+ "@ai-sdk/test-server": "0.0.4"
66
78
  },
67
79
  "peerDependencies": {
68
80
  "zod": "^3.25.76 || ^4.1.8"
package/xai/edge.d.ts ADDED
@@ -0,0 +1 @@
1
+ export * from '../dist/xai/edge';
package/xai/index.d.ts ADDED
@@ -0,0 +1 @@
1
+ export * from '../dist/xai/index';