ai 6.0.0-beta.143 → 6.0.0-beta.145

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 CHANGED
@@ -1,5 +1,18 @@
1
1
  # ai
2
2
 
3
+ ## 6.0.0-beta.145
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies [34ee8d0]
8
+ - @ai-sdk/gateway@2.0.0-beta.76
9
+
10
+ ## 6.0.0-beta.144
11
+
12
+ ### Patch Changes
13
+
14
+ - ab6f01a: Improve ai gateway error message when api key is not present
15
+
3
16
  ## 6.0.0-beta.143
4
17
 
5
18
  ### Patch Changes
package/dist/index.js CHANGED
@@ -962,7 +962,7 @@ function detectMediaType({
962
962
  var import_provider_utils2 = require("@ai-sdk/provider-utils");
963
963
 
964
964
  // src/version.ts
965
- var VERSION = true ? "6.0.0-beta.143" : "0.0.0-test";
965
+ var VERSION = true ? "6.0.0-beta.145" : "0.0.0-test";
966
966
 
967
967
  // src/util/download/download.ts
968
968
  var download = async ({ url }) => {
@@ -1820,7 +1820,7 @@ function wrapGatewayError(error) {
1820
1820
  if (import_gateway2.GatewayAuthenticationError.isInstance(error) || import_gateway2.GatewayModelNotFoundError.isInstance(error)) {
1821
1821
  return new import_provider20.AISDKError({
1822
1822
  name: "GatewayError",
1823
- message: "Vercel AI Gateway access failed. If you want to use AI SDK providers directly, use the providers, e.g. @ai-sdk/openai, or register a different global default provider.",
1823
+ message: "Unauthenticated. Configure AI_GATEWAY_API_KEY or configure and use a provider module. Learn more: https://vercel.link/unauthenticated-ai-gateway-v6",
1824
1824
  cause: error
1825
1825
  });
1826
1826
  }