@ai-sdk/gateway 3.0.232 → 3.0.235
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 +26 -0
- package/dist/index.d.mts +44 -2
- package/dist/index.d.ts +44 -2
- package/dist/index.js +23 -8
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +23 -8
- package/dist/index.mjs.map +1 -1
- package/docs/00-ai-gateway.mdx +38 -1
- package/package.json +2 -2
- package/src/gateway-language-model-settings.ts +6 -0
- package/src/tool/tako-search.ts +74 -5
package/dist/index.mjs
CHANGED
|
@@ -2599,12 +2599,17 @@ var takoResultContentSchema = () => z23.object({
|
|
|
2599
2599
|
expires_at: z23.string().nullish(),
|
|
2600
2600
|
total_rows: z23.number().nullish(),
|
|
2601
2601
|
truncated: z23.boolean().optional(),
|
|
2602
|
+
premium_rows: z23.record(z23.string(), z23.number()).nullish(),
|
|
2603
|
+
redacted_cells: z23.record(z23.string(), z23.array(z23.number())).nullish(),
|
|
2604
|
+
total_matching: z23.number().nullish(),
|
|
2602
2605
|
export_pricing: z23.object({
|
|
2603
2606
|
baseline_usd: z23.number(),
|
|
2604
|
-
free_rows: z23.number(),
|
|
2607
|
+
free_rows: z23.number().optional(),
|
|
2605
2608
|
max_rows_ceiling: z23.number(),
|
|
2606
|
-
row_cpm_usd: z23.number()
|
|
2607
|
-
|
|
2609
|
+
row_cpm_usd: z23.number(),
|
|
2610
|
+
premium_row_cpm_usd: z23.record(z23.string(), z23.number()).nullish(),
|
|
2611
|
+
variable_cost_max_usd: z23.number().nullish()
|
|
2612
|
+
}).passthrough().nullish(),
|
|
2608
2613
|
manifest: z23.array(
|
|
2609
2614
|
z23.object({
|
|
2610
2615
|
dtype: z23.enum(["boolean", "date", "datetime", "number", "string"]).nullish(),
|
|
@@ -2641,6 +2646,7 @@ var takoCardSchema = () => z23.object({
|
|
|
2641
2646
|
source_indexes: z23.array(z23.enum(["data", "web"])).nullish(),
|
|
2642
2647
|
card_type: z23.string().nullish(),
|
|
2643
2648
|
relevance: z23.enum(["High", "Low", "Medium"]).nullish(),
|
|
2649
|
+
relevance_score: z23.number().nullish(),
|
|
2644
2650
|
content: takoResultContentSchema().nullish(),
|
|
2645
2651
|
exportable: z23.boolean().optional(),
|
|
2646
2652
|
nodes: z23.array(
|
|
@@ -2656,7 +2662,11 @@ var takoCardSchema = () => z23.object({
|
|
|
2656
2662
|
coverage_end: z23.string().nullish(),
|
|
2657
2663
|
data_as_of: z23.string().nullish(),
|
|
2658
2664
|
last_updated: z23.string().nullish()
|
|
2659
|
-
}).nullish()
|
|
2665
|
+
}).nullish(),
|
|
2666
|
+
placeholder: z23.object({
|
|
2667
|
+
withheld_source: z23.string(),
|
|
2668
|
+
reason: z23.enum(["not_served", "over_cap"]).nullish()
|
|
2669
|
+
}).passthrough().nullish()
|
|
2660
2670
|
}).passthrough();
|
|
2661
2671
|
var takoWebResultSchema = () => z23.object({
|
|
2662
2672
|
title: z23.string(),
|
|
@@ -2675,9 +2685,14 @@ var takoSearchOutputSchema = lazySchema21(
|
|
|
2675
2685
|
web_results: z23.array(takoWebResultSchema()).optional(),
|
|
2676
2686
|
usage: z23.object({
|
|
2677
2687
|
total_cost_usd: z23.number(),
|
|
2678
|
-
compute: z23.object({ cost_usd: z23.number() }).nullish(),
|
|
2679
|
-
data: z23.object({
|
|
2680
|
-
|
|
2688
|
+
compute: z23.object({ cost_usd: z23.number() }).passthrough().nullish(),
|
|
2689
|
+
data: z23.object({
|
|
2690
|
+
cost_usd: z23.number(),
|
|
2691
|
+
datasets: z23.number(),
|
|
2692
|
+
data_points: z23.number().nullish()
|
|
2693
|
+
}).passthrough().nullish(),
|
|
2694
|
+
variable_cost: z23.object({ cost_usd: z23.number() }).passthrough().nullish()
|
|
2695
|
+
}).passthrough().nullish(),
|
|
2681
2696
|
related: z23.array(z23.object({}).passthrough()).nullish()
|
|
2682
2697
|
}).passthrough(),
|
|
2683
2698
|
gatewayToolErrorSchema()
|
|
@@ -2762,7 +2777,7 @@ async function getVercelRequestId() {
|
|
|
2762
2777
|
}
|
|
2763
2778
|
|
|
2764
2779
|
// src/version.ts
|
|
2765
|
-
var VERSION = true ? "3.0.
|
|
2780
|
+
var VERSION = true ? "3.0.235" : "0.0.0-test";
|
|
2766
2781
|
|
|
2767
2782
|
// src/gateway-provider.ts
|
|
2768
2783
|
var AI_GATEWAY_PROTOCOL_VERSION = "0.0.1";
|