@ai-sdk/google-vertex 5.0.150 → 5.0.151

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.
@@ -2,7 +2,7 @@ import { fetchWithValidatedEndpoint, getRuntimeEnvironmentUserAgent, isBrowserRu
2
2
  import { InvalidArgumentError } from "@ai-sdk/provider";
3
3
  import { createOpenAICompatible } from "@ai-sdk/openai-compatible";
4
4
  //#region src/version.ts
5
- const VERSION = "5.0.150";
5
+ const VERSION = "5.0.151";
6
6
  //#endregion
7
7
  //#region src/edge/google-vertex-auth-edge.ts
8
8
  const loadCredentials = async () => {
@@ -2,7 +2,7 @@ import { getRuntimeEnvironmentUserAgent, loadOptionalSetting, loadSetting, resol
2
2
  import { NoSuchModelError } from "@ai-sdk/provider";
3
3
  import { createOpenAICompatible } from "@ai-sdk/openai-compatible";
4
4
  //#region src/version.ts
5
- const VERSION = "5.0.150";
5
+ const VERSION = "5.0.151";
6
6
  //#endregion
7
7
  //#region src/edge/google-vertex-auth-edge.ts
8
8
  const loadCredentials = async () => {
@@ -1495,7 +1495,7 @@ requested. These shared timing controls currently apply to Gemini transcription;
1495
1495
  Chirp and telephony use their provider settings below.
1496
1496
 
1497
1497
  `gemini-3.5-transcribe-live` transcribes live audio with
1498
- [`experimental_streamTranscribe`](/docs/ai-sdk-core/transcription#streaming-transcription)
1498
+ [`streamTranscription`](/docs/ai-sdk-core/transcription#streaming-transcription)
1499
1499
  over the Vertex Live API. It authenticates with an `Authorization` header, which
1500
1500
  native WebSockets cannot send, so pass a header-capable implementation such as
1501
1501
  the `ws` package:
@@ -1505,7 +1505,7 @@ import {
1505
1505
  createVertex,
1506
1506
  type GoogleVertexProviderSettings,
1507
1507
  } from '@ai-sdk/google-vertex';
1508
- import { experimental_streamTranscribe as streamTranscribe } from 'ai';
1508
+ import { streamTranscription } from 'ai';
1509
1509
  import { WebSocket } from 'ws';
1510
1510
 
1511
1511
  const vertex = createVertex({
@@ -1513,7 +1513,7 @@ const vertex = createVertex({
1513
1513
  webSocket: WebSocket as unknown as GoogleVertexProviderSettings['webSocket'],
1514
1514
  });
1515
1515
 
1516
- const result = streamTranscribe({
1516
+ const result = streamTranscription({
1517
1517
  model: vertex.transcription('gemini-3.5-transcribe-live'),
1518
1518
  audio, // ReadableStream of 16kHz 16-bit mono PCM chunks
1519
1519
  inputAudioFormat: { type: 'audio/pcm', rate: 16000 },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ai-sdk/google-vertex",
3
- "version": "5.0.150",
3
+ "version": "5.0.151",
4
4
  "type": "module",
5
5
  "license": "Apache-2.0",
6
6
  "sideEffects": false,
@@ -71,20 +71,21 @@
71
71
  }
72
72
  },
73
73
  "dependencies": {
74
- "@ai-sdk/anthropic": "4.0.112",
75
- "@ai-sdk/google": "4.0.129",
76
- "@ai-sdk/openai-compatible": "3.0.97",
77
- "@ai-sdk/provider": "4.0.39",
78
- "@ai-sdk/provider-utils": "5.0.86",
74
+ "@ai-sdk/anthropic": "4.0.113",
75
+ "@ai-sdk/google": "4.0.130",
76
+ "@ai-sdk/openai-compatible": "3.0.98",
77
+ "@ai-sdk/provider": "4.0.40",
78
+ "@ai-sdk/provider-utils": "5.0.87",
79
79
  "google-auth-library": "^11.3.1"
80
80
  },
81
81
  "devDependencies": {
82
82
  "@ai-sdk/test-server": "2.0.4",
83
83
  "@types/node": "22.19.19",
84
+ "@typescript/native": "npm:typescript@7.0.2",
84
85
  "@vercel/ai-tsconfig": "0.0.0",
85
86
  "@vercel/ai-tsdown-config": "0.0.0",
86
87
  "tsdown": "^0.23.0",
87
- "typescript": "6.0.3",
88
+ "typescript": "npm:@typescript/typescript6@6.0.2",
88
89
  "zod": "4.6.7"
89
90
  },
90
91
  "peerDependencies": {
@@ -115,6 +116,9 @@
115
116
  "clean": "del-cli docs",
116
117
  "type-check": "tsc --noEmit",
117
118
  "test": "pnpm test:node && pnpm test:edge",
119
+ "test:node22": "node ../../tools/with-node.mjs 22 pnpm test",
120
+ "test:node24": "node ../../tools/with-node.mjs 24 pnpm test",
121
+ "test:node26": "node ../../tools/with-node.mjs 26 pnpm test",
118
122
  "test:update": "pnpm test:node -u",
119
123
  "test:watch": "vitest --config vitest.node.config.js",
120
124
  "test:edge": "vitest --config vitest.edge.config.js --run",
@@ -1,11 +1,11 @@
1
1
  import { getGoogleVertexRequestConfig } from '../google-vertex-model-matrix';
2
2
  import {
3
3
  InvalidArgumentError,
4
- type Experimental_TranscriptionModelV4StreamOptions as TranscriptionModelV4StreamOptions,
5
- type Experimental_TranscriptionModelV4StreamPart as TranscriptionModelV4StreamPart,
6
4
  type JSONObject,
7
5
  type SharedV4Warning,
8
6
  type TranscriptionModelV4,
7
+ type TranscriptionModelV4StreamOptions,
8
+ type TranscriptionModelV4StreamPart,
9
9
  } from '@ai-sdk/provider';
10
10
  import {
11
11
  lazySchema,
@@ -170,7 +170,7 @@ export class GoogleVertexGeminiTranscriptionModel implements TranscriptionModelV
170
170
  argument: 'modelId',
171
171
  message:
172
172
  `Model '${this.modelId}' only supports streaming transcription. ` +
173
- `Use experimental_streamTranscribe, or a unary model such as 'gemini-3.5-transcribe'.`,
173
+ `Use streamTranscription, or a unary model such as 'gemini-3.5-transcribe'.`,
174
174
  });
175
175
  }
176
176