@ai-sdk/gateway 3.0.181 → 3.0.183

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.
@@ -719,9 +719,9 @@ The Tako Search tool supports these optional configuration options:
719
719
  - **includeContents** _boolean_ - Inline each page's extracted full text in `content`. **articleContentMaxChars** caps it, defaulting to 30,000 characters (maximum 1,000,000).
720
720
  - **sources.data** _object_ - Configure data results:
721
721
  - **count** _number_ - Maximum data results, 1-20. Defaults to 5.
722
- - **includeContents** _boolean_ - Inline each card's underlying rows in `content.dataset` as typed, unit-labeled columns.
722
+ - **includeContents** _boolean_ - Inline each card's underlying rows in `content.dataset` as typed, unit-labeled columns. This adds a data surcharge based on the row count and dataset source. To estimate cost, first search with `includeContents: false` and inspect `cards.content.export_pricing`. Because this applies to every returned card, use `count` and `maxRows` to control cost.
723
723
  - **contentFormat** _'json_compact' | 'json_records' | 'csv' | 'card_json'_ - Serialization for inlined card data. Defaults to `'json_compact'`.
724
- - **maxRows** _number_ - Row cap for inlined card data. Omit to use your account's default inline cap (20 rows on the standard plan); maximum 2,000.
724
+ - **maxRows** _number_ - Row cap per result. Omit to use the allowance in `cards.content.export_pricing`. A data surcharge applies per 1,000 exported rows; lower values reduce cost.
725
725
  - **nodeIds** _string[]_ - Data Graph node IDs to prioritize. Up to 20.
726
726
  - **strict** _boolean_ - Only return cards matching `nodeIds`. Requires at least one `nodeIds` value.
727
727
  - **location** _object_ - End-user `{ latitude, longitude }` coordinates for localized results.
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@ai-sdk/gateway",
3
3
  "private": false,
4
- "version": "3.0.181",
4
+ "version": "3.0.183",
5
5
  "license": "Apache-2.0",
6
6
  "sideEffects": false,
7
7
  "main": "./dist/index.js",
@@ -47,7 +47,6 @@ export type GatewayModelId =
47
47
  | 'anthropic/claude-sonnet-4.6'
48
48
  | 'anthropic/claude-sonnet-5'
49
49
  | 'arcee-ai/trinity-large-thinking'
50
- | 'arcee-ai/trinity-mini'
51
50
  | 'bytedance/seed-1.6'
52
51
  | 'bytedance/seed-1.8'
53
52
  | 'cohere/command-a'
@@ -103,13 +102,13 @@ export type GatewayModelId =
103
102
  | 'minimax/minimax-m2.5'
104
103
  | 'minimax/minimax-m2.5-highspeed'
105
104
  | 'minimax/minimax-m2.7'
105
+ | 'minimax/minimax-m2.7-free'
106
106
  | 'minimax/minimax-m2.7-highspeed'
107
107
  | 'minimax/minimax-m3'
108
+ | 'minimax/minimax-m3-free'
108
109
  | 'mistral/codestral'
109
110
  | 'mistral/devstral-2'
110
111
  | 'mistral/devstral-small-2'
111
- | 'mistral/magistral-medium'
112
- | 'mistral/magistral-small'
113
112
  | 'mistral/ministral-14b'
114
113
  | 'mistral/ministral-3b'
115
114
  | 'mistral/ministral-8b'
@@ -133,7 +132,6 @@ export type GatewayModelId =
133
132
  | 'nvidia/nemotron-3-super-120b-a12b'
134
133
  | 'nvidia/nemotron-3-ultra-550b-a55b'
135
134
  | 'nvidia/nemotron-3.5-lightning'
136
- | 'nvidia/nemotron-3.5-lightning-free'
137
135
  | 'nvidia/nemotron-nano-12b-v2-vl'
138
136
  | 'nvidia/nemotron-nano-9b-v2'
139
137
  | 'openai/gpt-3.5-turbo'
@@ -148,7 +146,6 @@ export type GatewayModelId =
148
146
  | 'openai/gpt-4o-fast'
149
147
  | 'openai/gpt-4o-mini'
150
148
  | 'openai/gpt-4o-mini-fast'
151
- | 'openai/gpt-4o-mini-search-preview'
152
149
  | 'openai/gpt-5'
153
150
  | 'openai/gpt-5-codex'
154
151
  | 'openai/gpt-5-fast'
@@ -184,10 +181,10 @@ export type GatewayModelId =
184
181
  | 'openai/gpt-5.6-terra-fast'
185
182
  | 'openai/gpt-oss-120b'
186
183
  | 'openai/gpt-oss-20b'
184
+ | 'openai/gpt-oss-safeguard-120b'
187
185
  | 'openai/gpt-oss-safeguard-20b'
188
186
  | 'openai/o1'
189
187
  | 'openai/o3'
190
- | 'openai/o3-deep-research'
191
188
  | 'openai/o3-fast'
192
189
  | 'openai/o3-mini'
193
190
  | 'openai/o3-pro'
@@ -235,5 +232,6 @@ export type GatewayModelId =
235
232
  | 'zai/glm-5.2'
236
233
  | 'zai/glm-5.2-fast'
237
234
  | 'zai/glm-5.3'
235
+ | 'zai/glm-5.3-flash'
238
236
  | 'zai/glm-5v-turbo'
239
237
  | (string & {});
@@ -7,6 +7,7 @@ export type GatewayVideoModelId =
7
7
  | 'alibaba/wan-v2.6-t2v'
8
8
  | 'alibaba/wan-v2.7-r2v'
9
9
  | 'alibaba/wan-v2.7-t2v'
10
+ | 'alibaba/wan-v3.0-video'
10
11
  | 'bfl/flux-3-video'
11
12
  | 'bytedance/seedance-2.0'
12
13
  | 'bytedance/seedance-2.0-fast'
@@ -14,15 +14,28 @@ export type TakoContentFormat =
14
14
  | 'json_records';
15
15
 
16
16
  export interface TakoDataSourceConfig {
17
- /** Maximum number of data cards to return (1-20). */
17
+ /**
18
+ * Maximum number of data results to return (1-20). When includeContents is
19
+ * true, each additional result adds its own data surcharge.
20
+ */
18
21
  count?: number;
19
- /** Inline underlying card data in the response. This can add a data charge. */
22
+ /**
23
+ * Inline rows for each data result. This adds a data surcharge based on row
24
+ * count and dataset source. To estimate cost, search with includeContents
25
+ * disabled and inspect cards.content.export_pricing. This applies to every
26
+ * returned card; limit sources.data.count and sources.data.maxRows to control
27
+ * cost.
28
+ */
20
29
  includeContents?: boolean;
21
30
  /** Requested delivery mode for card data. Search cards are always inlined. */
22
31
  mode?: 'inline' | 'url';
23
32
  /** Serialization for inlined card data. */
24
33
  contentFormat?: TakoContentFormat;
25
- /** Maximum rows for inlined card data. The service clamps large values. */
34
+ /**
35
+ * Maximum rows to inline per result. Omit to use the allowance in
36
+ * cards.content.export_pricing. A data surcharge applies per 1,000 exported
37
+ * rows; lower values reduce cost.
38
+ */
26
39
  maxRows?: number;
27
40
  /** Data Graph node IDs to prioritize. */
28
41
  nodeIds?: string[];
@@ -190,7 +203,6 @@ export interface TakoCard {
190
203
  relevance?: 'High' | 'Low' | 'Medium' | null;
191
204
  content?: TakoResultContent | null;
192
205
  exportable?: boolean;
193
- relevance_score?: number | null;
194
206
  nodes?: Array<{
195
207
  id: string;
196
208
  type: 'entity' | 'metric';
@@ -215,7 +227,6 @@ export interface TakoWebResult {
215
227
  source_name?: string | null;
216
228
  publish_date?: string | null;
217
229
  content?: TakoResultContent | null;
218
- citation_number?: number | null;
219
230
  }
220
231
 
221
232
  export interface TakoSearchResponse {
@@ -254,11 +265,15 @@ const takoDataSourceInputSchema = z.object({
254
265
  count: z
255
266
  .number()
256
267
  .optional()
257
- .describe('Maximum number of data cards to return (1-20).'),
268
+ .describe(
269
+ 'Maximum number of data results to return (1-20). When include_contents is true, each additional result adds its own data surcharge.',
270
+ ),
258
271
  include_contents: z
259
272
  .boolean()
260
273
  .optional()
261
- .describe('Inline underlying card data. This can add a data charge.'),
274
+ .describe(
275
+ 'Inline rows for each data result. This adds a data surcharge based on row count and dataset source. To estimate cost, search with include_contents disabled and inspect cards.content.export_pricing. This applies to every returned card; limit sources.data.count and sources.data.max_rows to control cost.',
276
+ ),
262
277
  mode: z
263
278
  .enum(['inline', 'url'])
264
279
  .optional()
@@ -272,7 +287,9 @@ const takoDataSourceInputSchema = z.object({
272
287
  max_rows: z
273
288
  .number()
274
289
  .optional()
275
- .describe('Maximum rows for inlined card data.'),
290
+ .describe(
291
+ 'Maximum rows to inline per result. Omit to use the allowance in cards.content.export_pricing. A data surcharge applies per 1,000 exported rows; lower values reduce cost.',
292
+ ),
276
293
  node_ids: z
277
294
  .array(z.string())
278
295
  .optional()
@@ -493,7 +510,6 @@ const takoCardSchema = z
493
510
  relevance: z.enum(['High', 'Low', 'Medium']).nullish(),
494
511
  content: takoResultContentSchema.nullish(),
495
512
  exportable: z.boolean().optional(),
496
- relevance_score: z.number().nullish(),
497
513
  nodes: z
498
514
  .array(
499
515
  z.object({
@@ -525,7 +541,6 @@ const takoWebResultSchema = z
525
541
  source_name: z.string().nullish(),
526
542
  publish_date: z.string().nullish(),
527
543
  content: takoResultContentSchema.nullish(),
528
- citation_number: z.number().nullish(),
529
544
  })
530
545
  .passthrough();
531
546