ai 7.0.0-beta.12 → 7.0.0-beta.13

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,11 @@
1
1
  # ai
2
2
 
3
+ ## 7.0.0-beta.13
4
+
5
+ ### Patch Changes
6
+
7
+ - c26ca8d: Remove custom User-Agent header from HttpChatTransport to fix CORS preflight failures in Safari and Firefox
8
+
3
9
  ## 7.0.0-beta.12
4
10
 
5
11
  ### Patch Changes
package/dist/index.js CHANGED
@@ -1370,7 +1370,7 @@ var import_provider_utils3 = require("@ai-sdk/provider-utils");
1370
1370
  var import_provider_utils4 = require("@ai-sdk/provider-utils");
1371
1371
 
1372
1372
  // src/version.ts
1373
- var VERSION = true ? "7.0.0-beta.12" : "0.0.0-test";
1373
+ var VERSION = true ? "7.0.0-beta.13" : "0.0.0-test";
1374
1374
 
1375
1375
  // src/util/download/download.ts
1376
1376
  var download = async ({
@@ -13026,14 +13026,10 @@ var HttpChatTransport = class {
13026
13026
  const fetch2 = (_d = this.fetch) != null ? _d : globalThis.fetch;
13027
13027
  const response = await fetch2(api, {
13028
13028
  method: "POST",
13029
- headers: (0, import_provider_utils36.withUserAgentSuffix)(
13030
- {
13031
- "Content-Type": "application/json",
13032
- ...headers
13033
- },
13034
- `ai-sdk/${VERSION}`,
13035
- (0, import_provider_utils36.getRuntimeEnvironmentUserAgent)()
13036
- ),
13029
+ headers: {
13030
+ "Content-Type": "application/json",
13031
+ ...headers
13032
+ },
13037
13033
  body: JSON.stringify(body),
13038
13034
  credentials,
13039
13035
  signal: abortSignal
@@ -13071,11 +13067,7 @@ var HttpChatTransport = class {
13071
13067
  const fetch2 = (_d = this.fetch) != null ? _d : globalThis.fetch;
13072
13068
  const response = await fetch2(api, {
13073
13069
  method: "GET",
13074
- headers: (0, import_provider_utils36.withUserAgentSuffix)(
13075
- headers,
13076
- `ai-sdk/${VERSION}`,
13077
- (0, import_provider_utils36.getRuntimeEnvironmentUserAgent)()
13078
- ),
13070
+ headers,
13079
13071
  credentials
13080
13072
  });
13081
13073
  if (response.status === 204) {