@ai-sdk/gateway 4.0.0-beta.47 → 4.0.0-beta.49

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.
@@ -782,7 +782,7 @@ The following gateway provider options are available:
782
782
 
783
783
  Sorts available providers by a performance or cost metric before routing. The gateway will try the best-scoring provider first and fall back through the rest in sorted order. If unspecified, providers are ordered using the gateway's default system ranking.
784
784
 
785
- - `'cost'` — lowest input cost per token first
785
+ - `'cost'` — lowest cost first
786
786
  - `'ttft'` — lowest time-to-first-token first
787
787
  - `'tps'` — highest tokens-per-second first
788
788
 
package/package.json CHANGED
@@ -1,11 +1,11 @@
1
1
  {
2
2
  "name": "@ai-sdk/gateway",
3
3
  "private": false,
4
- "version": "4.0.0-beta.47",
4
+ "version": "4.0.0-beta.49",
5
+ "type": "module",
5
6
  "license": "Apache-2.0",
6
7
  "sideEffects": false,
7
8
  "main": "./dist/index.js",
8
- "module": "./dist/index.mjs",
9
9
  "types": "./dist/index.d.ts",
10
10
  "files": [
11
11
  "dist/**/*",
@@ -25,14 +25,14 @@
25
25
  "./package.json": "./package.json",
26
26
  ".": {
27
27
  "types": "./dist/index.d.ts",
28
- "import": "./dist/index.mjs",
29
- "require": "./dist/index.js"
28
+ "import": "./dist/index.js",
29
+ "default": "./dist/index.js"
30
30
  }
31
31
  },
32
32
  "dependencies": {
33
33
  "@vercel/oidc": "3.2.0",
34
- "@ai-sdk/provider": "4.0.0-beta.10",
35
- "@ai-sdk/provider-utils": "5.0.0-beta.18"
34
+ "@ai-sdk/provider": "4.0.0-beta.11",
35
+ "@ai-sdk/provider-utils": "5.0.0-beta.19"
36
36
  },
37
37
  "devDependencies": {
38
38
  "@types/node": "18.15.11",
@@ -40,7 +40,7 @@
40
40
  "tsx": "4.19.2",
41
41
  "typescript": "5.8.3",
42
42
  "zod": "3.25.76",
43
- "@ai-sdk/test-server": "2.0.0-beta.0",
43
+ "@ai-sdk/test-server": "2.0.0-beta.1",
44
44
  "@vercel/ai-tsconfig": "0.0.0"
45
45
  },
46
46
  "peerDependencies": {
@@ -9,6 +9,9 @@ export type GatewayImageModelId =
9
9
  | 'bfl/flux-pro-1.0-fill'
10
10
  | 'bfl/flux-pro-1.1'
11
11
  | 'bfl/flux-pro-1.1-ultra'
12
+ | 'bytedance/seedream-4.0'
13
+ | 'bytedance/seedream-4.5'
14
+ | 'bytedance/seedream-5.0-lite'
12
15
  | 'google/imagen-4.0-fast-generate-001'
13
16
  | 'google/imagen-4.0-generate-001'
14
17
  | 'google/imagen-4.0-ultra-generate-001'
@@ -20,7 +20,7 @@ const gatewayProviderOptions = lazySchema(() =>
20
20
  /**
21
21
  * Sort providers by a performance or cost metric before routing.
22
22
  *
23
- * - `'cost'`: lowest input cost first
23
+ * - `'cost'`: lowest cost first
24
24
  * - `'ttft'`: lowest time-to-first-token first
25
25
  * - `'tps'`: highest tokens-per-second first
26
26
  */