@ai-sdk/gateway 3.0.137 → 3.0.139

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/dist/index.js CHANGED
@@ -36,7 +36,7 @@ __export(index_exports, {
36
36
  module.exports = __toCommonJS(index_exports);
37
37
 
38
38
  // src/gateway-provider.ts
39
- var import_provider_utils16 = require("@ai-sdk/provider-utils");
39
+ var import_provider_utils17 = require("@ai-sdk/provider-utils");
40
40
 
41
41
  // src/errors/as-gateway-error.ts
42
42
  var import_provider = require("@ai-sdk/provider");
@@ -1254,6 +1254,7 @@ var GatewayVideoModel = class {
1254
1254
  duration,
1255
1255
  fps,
1256
1256
  seed,
1257
+ generateAudio,
1257
1258
  image,
1258
1259
  providerOptions,
1259
1260
  headers,
@@ -1279,6 +1280,7 @@ var GatewayVideoModel = class {
1279
1280
  ...duration && { duration },
1280
1281
  ...fps && { fps },
1281
1282
  ...seed && { seed },
1283
+ ...generateAudio !== void 0 && { generateAudio },
1282
1284
  ...providerOptions && { providerOptions },
1283
1285
  ...image && { image: maybeEncodeVideoFile(image) }
1284
1286
  },
@@ -1755,68 +1757,197 @@ var gatewayTranscriptionResponseSchema = import_v413.z.object({
1755
1757
  providerMetadata: import_v413.z.record(import_v413.z.string(), providerMetadataEntrySchema4).optional()
1756
1758
  });
1757
1759
 
1758
- // src/tool/parallel-search.ts
1760
+ // src/tool/exa-search.ts
1759
1761
  var import_provider_utils14 = require("@ai-sdk/provider-utils");
1760
1762
  var import_zod = require("zod");
1761
- var parallelSearchInputSchema = (0, import_provider_utils14.lazySchema)(
1763
+ var exaSearchInputSchema = (0, import_provider_utils14.lazySchema)(
1762
1764
  () => (0, import_provider_utils14.zodSchema)(
1763
1765
  import_zod.z.object({
1764
- objective: import_zod.z.string().describe(
1766
+ query: import_zod.z.string().describe("Natural-language web search query. This is required."),
1767
+ type: import_zod.z.enum(["auto", "fast", "instant"]).optional().describe(
1768
+ "Search method. Use auto for the default balance of speed and quality."
1769
+ ),
1770
+ num_results: import_zod.z.number().optional().describe("Maximum number of results to return (1-100, default: 10)."),
1771
+ category: import_zod.z.enum([
1772
+ "company",
1773
+ "people",
1774
+ "research paper",
1775
+ "news",
1776
+ "personal site",
1777
+ "financial report"
1778
+ ]).optional().describe("Optional content category to focus results."),
1779
+ user_location: import_zod.z.string().optional().describe("Two-letter ISO country code such as 'US'."),
1780
+ include_domains: import_zod.z.array(import_zod.z.string()).optional().describe("Only return results from these domains."),
1781
+ exclude_domains: import_zod.z.array(import_zod.z.string()).optional().describe("Exclude results from these domains."),
1782
+ start_published_date: import_zod.z.string().optional().describe("Only return links published after this ISO 8601 date."),
1783
+ end_published_date: import_zod.z.string().optional().describe("Only return links published before this ISO 8601 date."),
1784
+ contents: import_zod.z.object({
1785
+ text: import_zod.z.union([
1786
+ import_zod.z.boolean(),
1787
+ import_zod.z.object({
1788
+ max_characters: import_zod.z.number().optional(),
1789
+ include_html_tags: import_zod.z.boolean().optional(),
1790
+ verbosity: import_zod.z.enum(["compact", "standard", "full"]).optional(),
1791
+ include_sections: import_zod.z.array(
1792
+ import_zod.z.enum([
1793
+ "header",
1794
+ "navigation",
1795
+ "banner",
1796
+ "body",
1797
+ "sidebar",
1798
+ "footer",
1799
+ "metadata"
1800
+ ])
1801
+ ).optional(),
1802
+ exclude_sections: import_zod.z.array(
1803
+ import_zod.z.enum([
1804
+ "header",
1805
+ "navigation",
1806
+ "banner",
1807
+ "body",
1808
+ "sidebar",
1809
+ "footer",
1810
+ "metadata"
1811
+ ])
1812
+ ).optional()
1813
+ })
1814
+ ]).optional(),
1815
+ highlights: import_zod.z.union([
1816
+ import_zod.z.boolean(),
1817
+ import_zod.z.object({
1818
+ query: import_zod.z.string().optional(),
1819
+ max_characters: import_zod.z.number().optional()
1820
+ })
1821
+ ]).optional(),
1822
+ max_age_hours: import_zod.z.number().optional(),
1823
+ livecrawl_timeout: import_zod.z.number().optional(),
1824
+ subpages: import_zod.z.number().optional(),
1825
+ subpage_target: import_zod.z.union([import_zod.z.string(), import_zod.z.array(import_zod.z.string())]).optional(),
1826
+ extras: import_zod.z.object({
1827
+ links: import_zod.z.number().optional(),
1828
+ image_links: import_zod.z.number().optional()
1829
+ }).optional()
1830
+ }).optional().describe("Controls extracted page content and freshness.")
1831
+ })
1832
+ )
1833
+ );
1834
+ var exaSearchOutputSchema = (0, import_provider_utils14.lazySchema)(
1835
+ () => (0, import_provider_utils14.zodSchema)(
1836
+ import_zod.z.union([
1837
+ import_zod.z.object({
1838
+ requestId: import_zod.z.string(),
1839
+ searchType: import_zod.z.string().optional(),
1840
+ resolvedSearchType: import_zod.z.string().optional(),
1841
+ results: import_zod.z.array(
1842
+ import_zod.z.object({
1843
+ title: import_zod.z.string(),
1844
+ url: import_zod.z.string(),
1845
+ id: import_zod.z.string(),
1846
+ publishedDate: import_zod.z.string().nullable().optional(),
1847
+ author: import_zod.z.string().nullable().optional(),
1848
+ image: import_zod.z.string().nullable().optional(),
1849
+ favicon: import_zod.z.string().nullable().optional(),
1850
+ text: import_zod.z.string().optional(),
1851
+ highlights: import_zod.z.array(import_zod.z.string()).optional(),
1852
+ highlightScores: import_zod.z.array(import_zod.z.number()).optional(),
1853
+ summary: import_zod.z.string().optional(),
1854
+ subpages: import_zod.z.array(import_zod.z.any()).optional(),
1855
+ extras: import_zod.z.object({
1856
+ links: import_zod.z.array(import_zod.z.string()).optional(),
1857
+ imageLinks: import_zod.z.array(import_zod.z.string()).optional()
1858
+ }).optional()
1859
+ })
1860
+ ),
1861
+ costDollars: import_zod.z.object({
1862
+ total: import_zod.z.number().optional(),
1863
+ search: import_zod.z.record(import_zod.z.number()).optional()
1864
+ }).optional()
1865
+ }),
1866
+ import_zod.z.object({
1867
+ error: import_zod.z.enum([
1868
+ "api_error",
1869
+ "rate_limit",
1870
+ "timeout",
1871
+ "invalid_input",
1872
+ "configuration_error",
1873
+ "execution_error",
1874
+ "unknown"
1875
+ ]),
1876
+ statusCode: import_zod.z.number().optional(),
1877
+ message: import_zod.z.string()
1878
+ })
1879
+ ])
1880
+ )
1881
+ );
1882
+ var exaSearchToolFactory = (0, import_provider_utils14.createProviderToolFactoryWithOutputSchema)({
1883
+ id: "gateway.exa_search",
1884
+ inputSchema: exaSearchInputSchema,
1885
+ outputSchema: exaSearchOutputSchema
1886
+ });
1887
+ var exaSearch = (config = {}) => exaSearchToolFactory(config);
1888
+
1889
+ // src/tool/parallel-search.ts
1890
+ var import_provider_utils15 = require("@ai-sdk/provider-utils");
1891
+ var import_zod2 = require("zod");
1892
+ var parallelSearchInputSchema = (0, import_provider_utils15.lazySchema)(
1893
+ () => (0, import_provider_utils15.zodSchema)(
1894
+ import_zod2.z.object({
1895
+ objective: import_zod2.z.string().describe(
1765
1896
  "Natural-language description of the web research goal, including source or freshness guidance and broader context from the task. Maximum 5000 characters."
1766
1897
  ),
1767
- search_queries: import_zod.z.array(import_zod.z.string()).optional().describe(
1898
+ search_queries: import_zod2.z.array(import_zod2.z.string()).optional().describe(
1768
1899
  "Optional search queries to supplement the objective. Maximum 200 characters per query."
1769
1900
  ),
1770
- mode: import_zod.z.enum(["one-shot", "agentic"]).optional().describe(
1901
+ mode: import_zod2.z.enum(["one-shot", "agentic"]).optional().describe(
1771
1902
  'Mode preset: "one-shot" for comprehensive results with longer excerpts (default), "agentic" for concise, token-efficient results for multi-step workflows.'
1772
1903
  ),
1773
- max_results: import_zod.z.number().optional().describe(
1904
+ max_results: import_zod2.z.number().optional().describe(
1774
1905
  "Maximum number of results to return (1-20). Defaults to 10 if not specified."
1775
1906
  ),
1776
- source_policy: import_zod.z.object({
1777
- include_domains: import_zod.z.array(import_zod.z.string()).optional().describe(
1907
+ source_policy: import_zod2.z.object({
1908
+ include_domains: import_zod2.z.array(import_zod2.z.string()).optional().describe(
1778
1909
  "Limit results to these domains. Use plain domain names only \u2014 e.g. example.com or sub.example.gov, or a bare extension like .edu. Do not include a scheme, path, or port (e.g. not https://example.com/page)."
1779
1910
  ),
1780
- exclude_domains: import_zod.z.array(import_zod.z.string()).optional().describe(
1911
+ exclude_domains: import_zod2.z.array(import_zod2.z.string()).optional().describe(
1781
1912
  "Exclude results from these domains. Use plain domain names only \u2014 e.g. example.com or sub.example.gov, or a bare extension like .edu. Do not include a scheme, path, or port (e.g. not https://example.com/page)."
1782
1913
  ),
1783
- after_date: import_zod.z.string().optional().describe(
1914
+ after_date: import_zod2.z.string().optional().describe(
1784
1915
  "Only include results published after this date. Use an ISO 8601 calendar date formatted YYYY-MM-DD (e.g. 2025-01-01); do not include a time."
1785
1916
  )
1786
1917
  }).optional().describe(
1787
1918
  "Source policy for controlling which domains to include/exclude and freshness."
1788
1919
  ),
1789
- excerpts: import_zod.z.object({
1790
- max_chars_per_result: import_zod.z.number().optional().describe("Maximum characters per result."),
1791
- max_chars_total: import_zod.z.number().optional().describe("Maximum total characters across all results.")
1920
+ excerpts: import_zod2.z.object({
1921
+ max_chars_per_result: import_zod2.z.number().optional().describe("Maximum characters per result."),
1922
+ max_chars_total: import_zod2.z.number().optional().describe("Maximum total characters across all results.")
1792
1923
  }).optional().describe("Excerpt configuration for controlling result length."),
1793
- fetch_policy: import_zod.z.object({
1794
- max_age_seconds: import_zod.z.number().optional().describe(
1924
+ fetch_policy: import_zod2.z.object({
1925
+ max_age_seconds: import_zod2.z.number().optional().describe(
1795
1926
  "Maximum age in seconds for cached content. Set to 0 to always fetch fresh content."
1796
1927
  )
1797
1928
  }).optional().describe("Fetch policy for controlling content freshness.")
1798
1929
  })
1799
1930
  )
1800
1931
  );
1801
- var parallelSearchOutputSchema = (0, import_provider_utils14.lazySchema)(
1802
- () => (0, import_provider_utils14.zodSchema)(
1803
- import_zod.z.union([
1932
+ var parallelSearchOutputSchema = (0, import_provider_utils15.lazySchema)(
1933
+ () => (0, import_provider_utils15.zodSchema)(
1934
+ import_zod2.z.union([
1804
1935
  // Success response
1805
- import_zod.z.object({
1806
- searchId: import_zod.z.string(),
1807
- results: import_zod.z.array(
1808
- import_zod.z.object({
1809
- url: import_zod.z.string(),
1810
- title: import_zod.z.string(),
1811
- excerpt: import_zod.z.string(),
1812
- publishDate: import_zod.z.string().nullable().optional(),
1813
- relevanceScore: import_zod.z.number().optional()
1936
+ import_zod2.z.object({
1937
+ searchId: import_zod2.z.string(),
1938
+ results: import_zod2.z.array(
1939
+ import_zod2.z.object({
1940
+ url: import_zod2.z.string(),
1941
+ title: import_zod2.z.string(),
1942
+ excerpt: import_zod2.z.string(),
1943
+ publishDate: import_zod2.z.string().nullable().optional(),
1944
+ relevanceScore: import_zod2.z.number().optional()
1814
1945
  })
1815
1946
  )
1816
1947
  }),
1817
1948
  // Error response
1818
- import_zod.z.object({
1819
- error: import_zod.z.enum([
1949
+ import_zod2.z.object({
1950
+ error: import_zod2.z.enum([
1820
1951
  "api_error",
1821
1952
  "rate_limit",
1822
1953
  "timeout",
@@ -1824,13 +1955,13 @@ var parallelSearchOutputSchema = (0, import_provider_utils14.lazySchema)(
1824
1955
  "configuration_error",
1825
1956
  "unknown"
1826
1957
  ]),
1827
- statusCode: import_zod.z.number().optional(),
1828
- message: import_zod.z.string()
1958
+ statusCode: import_zod2.z.number().optional(),
1959
+ message: import_zod2.z.string()
1829
1960
  })
1830
1961
  ])
1831
1962
  )
1832
1963
  );
1833
- var parallelSearchToolFactory = (0, import_provider_utils14.createProviderToolFactoryWithOutputSchema)({
1964
+ var parallelSearchToolFactory = (0, import_provider_utils15.createProviderToolFactoryWithOutputSchema)({
1834
1965
  id: "gateway.parallel_search",
1835
1966
  inputSchema: parallelSearchInputSchema,
1836
1967
  outputSchema: parallelSearchOutputSchema
@@ -1838,82 +1969,82 @@ var parallelSearchToolFactory = (0, import_provider_utils14.createProviderToolFa
1838
1969
  var parallelSearch = (config = {}) => parallelSearchToolFactory(config);
1839
1970
 
1840
1971
  // src/tool/perplexity-search.ts
1841
- var import_provider_utils15 = require("@ai-sdk/provider-utils");
1842
- var import_zod2 = require("zod");
1843
- var perplexitySearchInputSchema = (0, import_provider_utils15.lazySchema)(
1844
- () => (0, import_provider_utils15.zodSchema)(
1845
- import_zod2.z.object({
1846
- query: import_zod2.z.union([import_zod2.z.string(), import_zod2.z.array(import_zod2.z.string())]).describe(
1972
+ var import_provider_utils16 = require("@ai-sdk/provider-utils");
1973
+ var import_zod3 = require("zod");
1974
+ var perplexitySearchInputSchema = (0, import_provider_utils16.lazySchema)(
1975
+ () => (0, import_provider_utils16.zodSchema)(
1976
+ import_zod3.z.object({
1977
+ query: import_zod3.z.union([import_zod3.z.string(), import_zod3.z.array(import_zod3.z.string())]).describe(
1847
1978
  "Search query (string) or multiple queries (array of up to 5 strings). Multi-query searches return combined results from all queries."
1848
1979
  ),
1849
- max_results: import_zod2.z.number().optional().describe(
1980
+ max_results: import_zod3.z.number().optional().describe(
1850
1981
  "Maximum number of search results to return (1-20, default: 10)"
1851
1982
  ),
1852
- max_tokens_per_page: import_zod2.z.number().optional().describe(
1983
+ max_tokens_per_page: import_zod3.z.number().optional().describe(
1853
1984
  "Maximum number of tokens to extract per search result page (256-2048, default: 2048)"
1854
1985
  ),
1855
- max_tokens: import_zod2.z.number().optional().describe(
1986
+ max_tokens: import_zod3.z.number().optional().describe(
1856
1987
  "Maximum total tokens across all search results (default: 25000, max: 1000000)"
1857
1988
  ),
1858
- country: import_zod2.z.string().optional().describe(
1989
+ country: import_zod3.z.string().optional().describe(
1859
1990
  "Two-letter ISO 3166-1 alpha-2 country code for regional search results (e.g., 'US', 'GB', 'FR')"
1860
1991
  ),
1861
- search_domain_filter: import_zod2.z.array(import_zod2.z.string()).optional().describe(
1992
+ search_domain_filter: import_zod3.z.array(import_zod3.z.string()).optional().describe(
1862
1993
  "List of domains to include or exclude from search results (max 20). To include: ['nature.com', 'science.org']. To exclude: ['-example.com', '-spam.net']"
1863
1994
  ),
1864
- search_language_filter: import_zod2.z.array(import_zod2.z.string()).optional().describe(
1995
+ search_language_filter: import_zod3.z.array(import_zod3.z.string()).optional().describe(
1865
1996
  "List of ISO 639-1 language codes to filter results (max 10, lowercase). Examples: ['en', 'fr', 'de']"
1866
1997
  ),
1867
- search_after_date: import_zod2.z.string().optional().describe(
1998
+ search_after_date: import_zod3.z.string().optional().describe(
1868
1999
  "Include only results published after this date. Format: 'MM/DD/YYYY' (e.g., '3/1/2025'). Cannot be used with search_recency_filter."
1869
2000
  ),
1870
- search_before_date: import_zod2.z.string().optional().describe(
2001
+ search_before_date: import_zod3.z.string().optional().describe(
1871
2002
  "Include only results published before this date. Format: 'MM/DD/YYYY' (e.g., '3/15/2025'). Cannot be used with search_recency_filter."
1872
2003
  ),
1873
- last_updated_after_filter: import_zod2.z.string().optional().describe(
2004
+ last_updated_after_filter: import_zod3.z.string().optional().describe(
1874
2005
  "Include only results last updated after this date. Format: 'MM/DD/YYYY' (e.g., '3/1/2025'). Cannot be used with search_recency_filter."
1875
2006
  ),
1876
- last_updated_before_filter: import_zod2.z.string().optional().describe(
2007
+ last_updated_before_filter: import_zod3.z.string().optional().describe(
1877
2008
  "Include only results last updated before this date. Format: 'MM/DD/YYYY' (e.g., '3/15/2025'). Cannot be used with search_recency_filter."
1878
2009
  ),
1879
- search_recency_filter: import_zod2.z.enum(["day", "week", "month", "year"]).optional().describe(
2010
+ search_recency_filter: import_zod3.z.enum(["day", "week", "month", "year"]).optional().describe(
1880
2011
  "Filter results by relative time period. Cannot be used with search_after_date or search_before_date."
1881
2012
  )
1882
2013
  })
1883
2014
  )
1884
2015
  );
1885
- var perplexitySearchOutputSchema = (0, import_provider_utils15.lazySchema)(
1886
- () => (0, import_provider_utils15.zodSchema)(
1887
- import_zod2.z.union([
2016
+ var perplexitySearchOutputSchema = (0, import_provider_utils16.lazySchema)(
2017
+ () => (0, import_provider_utils16.zodSchema)(
2018
+ import_zod3.z.union([
1888
2019
  // Success response
1889
- import_zod2.z.object({
1890
- results: import_zod2.z.array(
1891
- import_zod2.z.object({
1892
- title: import_zod2.z.string(),
1893
- url: import_zod2.z.string(),
1894
- snippet: import_zod2.z.string(),
1895
- date: import_zod2.z.string().optional(),
1896
- lastUpdated: import_zod2.z.string().optional()
2020
+ import_zod3.z.object({
2021
+ results: import_zod3.z.array(
2022
+ import_zod3.z.object({
2023
+ title: import_zod3.z.string(),
2024
+ url: import_zod3.z.string(),
2025
+ snippet: import_zod3.z.string(),
2026
+ date: import_zod3.z.string().optional(),
2027
+ lastUpdated: import_zod3.z.string().optional()
1897
2028
  })
1898
2029
  ),
1899
- id: import_zod2.z.string()
2030
+ id: import_zod3.z.string()
1900
2031
  }),
1901
2032
  // Error response
1902
- import_zod2.z.object({
1903
- error: import_zod2.z.enum([
2033
+ import_zod3.z.object({
2034
+ error: import_zod3.z.enum([
1904
2035
  "api_error",
1905
2036
  "rate_limit",
1906
2037
  "timeout",
1907
2038
  "invalid_input",
1908
2039
  "unknown"
1909
2040
  ]),
1910
- statusCode: import_zod2.z.number().optional(),
1911
- message: import_zod2.z.string()
2041
+ statusCode: import_zod3.z.number().optional(),
2042
+ message: import_zod3.z.string()
1912
2043
  })
1913
2044
  ])
1914
2045
  )
1915
2046
  );
1916
- var perplexitySearchToolFactory = (0, import_provider_utils15.createProviderToolFactoryWithOutputSchema)({
2047
+ var perplexitySearchToolFactory = (0, import_provider_utils16.createProviderToolFactoryWithOutputSchema)({
1917
2048
  id: "gateway.perplexity_search",
1918
2049
  inputSchema: perplexitySearchInputSchema,
1919
2050
  outputSchema: perplexitySearchOutputSchema
@@ -1922,6 +2053,14 @@ var perplexitySearch = (config = {}) => perplexitySearchToolFactory(config);
1922
2053
 
1923
2054
  // src/gateway-tools.ts
1924
2055
  var gatewayTools = {
2056
+ /**
2057
+ * Search the web using Exa for current information and token-efficient
2058
+ * excerpts optimized for agent workflows.
2059
+ *
2060
+ * Supports search type, category, domain, date, location, and content
2061
+ * extraction controls.
2062
+ */
2063
+ exaSearch,
1925
2064
  /**
1926
2065
  * Search the web using Parallel AI's Search API for LLM-optimized excerpts.
1927
2066
  *
@@ -1950,7 +2089,7 @@ async function getVercelRequestId() {
1950
2089
  }
1951
2090
 
1952
2091
  // src/version.ts
1953
- var VERSION = true ? "3.0.137" : "0.0.0-test";
2092
+ var VERSION = true ? "3.0.139" : "0.0.0-test";
1954
2093
 
1955
2094
  // src/gateway-provider.ts
1956
2095
  var AI_GATEWAY_PROTOCOL_VERSION = "0.0.1";
@@ -1960,11 +2099,11 @@ function createGatewayProvider(options = {}) {
1960
2099
  let metadataCache = null;
1961
2100
  const cacheRefreshMillis = (_a11 = options.metadataCacheRefreshMillis) != null ? _a11 : 1e3 * 60 * 5;
1962
2101
  let lastFetchTime = 0;
1963
- const baseURL = (_b11 = (0, import_provider_utils16.withoutTrailingSlash)(options.baseURL)) != null ? _b11 : "https://ai-gateway.vercel.sh/v3/ai";
2102
+ const baseURL = (_b11 = (0, import_provider_utils17.withoutTrailingSlash)(options.baseURL)) != null ? _b11 : "https://ai-gateway.vercel.sh/v3/ai";
1964
2103
  const getHeaders = async () => {
1965
2104
  try {
1966
2105
  const auth = await getGatewayAuthToken(options);
1967
- return (0, import_provider_utils16.withUserAgentSuffix)(
2106
+ return (0, import_provider_utils17.withUserAgentSuffix)(
1968
2107
  {
1969
2108
  Authorization: `Bearer ${auth.token}`,
1970
2109
  "ai-gateway-protocol-version": AI_GATEWAY_PROTOCOL_VERSION,
@@ -1983,19 +2122,19 @@ function createGatewayProvider(options = {}) {
1983
2122
  }
1984
2123
  };
1985
2124
  const createO11yHeaders = () => {
1986
- const deploymentId = (0, import_provider_utils16.loadOptionalSetting)({
2125
+ const deploymentId = (0, import_provider_utils17.loadOptionalSetting)({
1987
2126
  settingValue: void 0,
1988
2127
  environmentVariableName: "VERCEL_DEPLOYMENT_ID"
1989
2128
  });
1990
- const environment = (0, import_provider_utils16.loadOptionalSetting)({
2129
+ const environment = (0, import_provider_utils17.loadOptionalSetting)({
1991
2130
  settingValue: void 0,
1992
2131
  environmentVariableName: "VERCEL_ENV"
1993
2132
  });
1994
- const region = (0, import_provider_utils16.loadOptionalSetting)({
2133
+ const region = (0, import_provider_utils17.loadOptionalSetting)({
1995
2134
  settingValue: void 0,
1996
2135
  environmentVariableName: "VERCEL_REGION"
1997
2136
  });
1998
- const projectId = (0, import_provider_utils16.loadOptionalSetting)({
2137
+ const projectId = (0, import_provider_utils17.loadOptionalSetting)({
1999
2138
  settingValue: void 0,
2000
2139
  environmentVariableName: "VERCEL_PROJECT_ID"
2001
2140
  });
@@ -2161,7 +2300,7 @@ function createGatewayProvider(options = {}) {
2161
2300
  }
2162
2301
  var gateway = createGatewayProvider();
2163
2302
  async function getGatewayAuthToken(options) {
2164
- const apiKey = (0, import_provider_utils16.loadOptionalSetting)({
2303
+ const apiKey = (0, import_provider_utils17.loadOptionalSetting)({
2165
2304
  settingValue: options.apiKey,
2166
2305
  environmentVariableName: "AI_GATEWAY_API_KEY"
2167
2306
  });