@ai-sdk/gateway 4.0.158 → 4.0.160
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 +16 -0
- package/dist/index.d.ts +4 -4
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/package.json +8 -4
- package/src/gateway-model-catalog.ts +5 -4
- package/src/gateway-transcription-model.ts +4 -4
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ai-sdk/gateway",
|
|
3
3
|
"private": false,
|
|
4
|
-
"version": "4.0.
|
|
4
|
+
"version": "4.0.160",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "Apache-2.0",
|
|
7
7
|
"sideEffects": false,
|
|
@@ -30,18 +30,19 @@
|
|
|
30
30
|
}
|
|
31
31
|
},
|
|
32
32
|
"dependencies": {
|
|
33
|
-
"@ai-sdk/provider": "4.0.
|
|
34
|
-
"@ai-sdk/provider-utils": "5.0.
|
|
33
|
+
"@ai-sdk/provider": "4.0.40",
|
|
34
|
+
"@ai-sdk/provider-utils": "5.0.87",
|
|
35
35
|
"@vercel/oidc": "3.2.0"
|
|
36
36
|
},
|
|
37
37
|
"devDependencies": {
|
|
38
38
|
"@ai-sdk/test-server": "2.0.4",
|
|
39
39
|
"@types/node": "22.19.19",
|
|
40
|
+
"@typescript/native": "npm:typescript@7.0.2",
|
|
40
41
|
"@vercel/ai-tsconfig": "0.0.0",
|
|
41
42
|
"@vercel/ai-tsdown-config": "0.0.0",
|
|
42
43
|
"tsdown": "^0.23.0",
|
|
43
44
|
"tsx": "4.23.12",
|
|
44
|
-
"typescript": "6.0.
|
|
45
|
+
"typescript": "npm:@typescript/typescript6@6.0.2",
|
|
45
46
|
"zod": "4.6.7"
|
|
46
47
|
},
|
|
47
48
|
"peerDependencies": {
|
|
@@ -73,6 +74,9 @@
|
|
|
73
74
|
"generate-model-settings": "tsx scripts/generate-model-settings.ts",
|
|
74
75
|
"type-check": "tsc --noEmit",
|
|
75
76
|
"test": "pnpm test:node && pnpm test:edge",
|
|
77
|
+
"test:node22": "node ../../tools/with-node.mjs 22 pnpm test",
|
|
78
|
+
"test:node24": "node ../../tools/with-node.mjs 24 pnpm test",
|
|
79
|
+
"test:node26": "node ../../tools/with-node.mjs 26 pnpm test",
|
|
76
80
|
"test:update": "pnpm test:node -u",
|
|
77
81
|
"test:watch": "vitest --config vitest.node.config.js",
|
|
78
82
|
"test:edge": "vitest --config vitest.edge.config.js --run",
|
|
@@ -80,12 +80,10 @@ export const gatewayModelIds = {
|
|
|
80
80
|
'elorian/glimpse',
|
|
81
81
|
'fireworks/ember-1',
|
|
82
82
|
'google/gemini-2.5-flash',
|
|
83
|
-
'google/gemini-2.5-flash-batch',
|
|
84
83
|
'google/gemini-2.5-flash-image',
|
|
85
84
|
'google/gemini-2.5-flash-lite',
|
|
86
85
|
'google/gemini-2.5-flash-lite-batch',
|
|
87
86
|
'google/gemini-2.5-pro',
|
|
88
|
-
'google/gemini-2.5-pro-batch',
|
|
89
87
|
'google/gemini-3-flash',
|
|
90
88
|
'google/gemini-3-flash-batch',
|
|
91
89
|
'google/gemini-3-pro-image',
|
|
@@ -273,6 +271,7 @@ export const gatewayModelIds = {
|
|
|
273
271
|
'sakana/namazu',
|
|
274
272
|
'scaledown/scaledown-extract-1',
|
|
275
273
|
'scaledown/scaledown-summarize-1',
|
|
274
|
+
'scaledown/toolcall',
|
|
276
275
|
'spacexai/grok-4.20-multi-agent',
|
|
277
276
|
'spacexai/grok-4.20-multi-agent-batch',
|
|
278
277
|
'spacexai/grok-4.20-multi-agent-beta',
|
|
@@ -289,6 +288,7 @@ export const gatewayModelIds = {
|
|
|
289
288
|
'spacexai/grok-4.7',
|
|
290
289
|
'stealth/glyph-cluster',
|
|
291
290
|
'stepfun/step-3.7-flash',
|
|
291
|
+
'stepfun/step-5',
|
|
292
292
|
'stepfun/step-5-preview',
|
|
293
293
|
'tencent/hy-mt2-lite',
|
|
294
294
|
'tencent/hy-mt2-plus',
|
|
@@ -408,8 +408,6 @@ export const gatewayModelIds = {
|
|
|
408
408
|
'microsoft/mai-image-2.7-flash',
|
|
409
409
|
'minimax/minimax-h3-image',
|
|
410
410
|
'minimax/minimax-h3-image-highspeed',
|
|
411
|
-
'openai/gpt-image-1-mini',
|
|
412
|
-
'openai/gpt-image-1.5',
|
|
413
411
|
'openai/gpt-image-2',
|
|
414
412
|
'openai/gpt-image-2.5-flare',
|
|
415
413
|
'openai/gpt-image-2.5-sunburst',
|
|
@@ -493,6 +491,7 @@ export const gatewayModelIds = {
|
|
|
493
491
|
'voyage/rerank-3-lite',
|
|
494
492
|
],
|
|
495
493
|
speech: [
|
|
494
|
+
'assemblyai/tts-1',
|
|
496
495
|
'elevenlabs/eleven-flash-v2',
|
|
497
496
|
'elevenlabs/eleven-flash-v2.5',
|
|
498
497
|
'elevenlabs/eleven-multilingual-v2',
|
|
@@ -519,6 +518,8 @@ export const gatewayModelIds = {
|
|
|
519
518
|
'spacexai/grok-tts',
|
|
520
519
|
],
|
|
521
520
|
transcription: [
|
|
521
|
+
'assemblyai/stt-3.7',
|
|
522
|
+
'assemblyai/universal-2',
|
|
522
523
|
'elevenlabs/scribe-v2',
|
|
523
524
|
'elevenlabs/scribe-v2-realtime',
|
|
524
525
|
'fish-audio/transcribe-1',
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import {
|
|
2
|
-
getErrorMessage,
|
|
3
|
-
type Experimental_TranscriptionModelV4StreamOptions as TranscriptionModelV4StreamOptions,
|
|
4
|
-
type Experimental_TranscriptionModelV4StreamPart as TranscriptionModelV4StreamPart,
|
|
5
|
-
type Experimental_TranscriptionModelV4StreamResult as TranscriptionModelV4StreamResult,
|
|
6
2
|
type SharedV4ProviderMetadata,
|
|
7
3
|
type SharedV4Warning,
|
|
8
4
|
type TranscriptionModelV4,
|
|
5
|
+
type TranscriptionModelV4StreamOptions,
|
|
6
|
+
type TranscriptionModelV4StreamPart,
|
|
7
|
+
type TranscriptionModelV4StreamResult,
|
|
8
|
+
getErrorMessage,
|
|
9
9
|
} from '@ai-sdk/provider';
|
|
10
10
|
import {
|
|
11
11
|
lazySchema,
|