ai 6.0.124 → 6.0.126

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,19 @@
1
1
  # ai
2
2
 
3
+ ## 6.0.126
4
+
5
+ ### Patch Changes
6
+
7
+ - 578615a: Remove custom User-Agent header from HttpChatTransport to fix CORS preflight failures in Safari and Firefox
8
+
9
+ ## 6.0.125
10
+
11
+ ### Patch Changes
12
+
13
+ - Updated dependencies [5ffb1ad]
14
+ - Updated dependencies [f5bf0c6]
15
+ - @ai-sdk/gateway@3.0.72
16
+
3
17
  ## 6.0.124
4
18
 
5
19
  ### Patch Changes
package/dist/index.js CHANGED
@@ -1230,7 +1230,7 @@ var import_provider_utils3 = require("@ai-sdk/provider-utils");
1230
1230
  var import_provider_utils4 = require("@ai-sdk/provider-utils");
1231
1231
 
1232
1232
  // src/version.ts
1233
- var VERSION = true ? "6.0.124" : "0.0.0-test";
1233
+ var VERSION = true ? "6.0.126" : "0.0.0-test";
1234
1234
 
1235
1235
  // src/util/download/download.ts
1236
1236
  var download = async ({
@@ -12901,14 +12901,10 @@ var HttpChatTransport = class {
12901
12901
  const fetch2 = (_d = this.fetch) != null ? _d : globalThis.fetch;
12902
12902
  const response = await fetch2(api, {
12903
12903
  method: "POST",
12904
- headers: (0, import_provider_utils36.withUserAgentSuffix)(
12905
- {
12906
- "Content-Type": "application/json",
12907
- ...headers
12908
- },
12909
- `ai-sdk/${VERSION}`,
12910
- (0, import_provider_utils36.getRuntimeEnvironmentUserAgent)()
12911
- ),
12904
+ headers: {
12905
+ "Content-Type": "application/json",
12906
+ ...headers
12907
+ },
12912
12908
  body: JSON.stringify(body),
12913
12909
  credentials,
12914
12910
  signal: abortSignal
@@ -12946,11 +12942,7 @@ var HttpChatTransport = class {
12946
12942
  const fetch2 = (_d = this.fetch) != null ? _d : globalThis.fetch;
12947
12943
  const response = await fetch2(api, {
12948
12944
  method: "GET",
12949
- headers: (0, import_provider_utils36.withUserAgentSuffix)(
12950
- headers,
12951
- `ai-sdk/${VERSION}`,
12952
- (0, import_provider_utils36.getRuntimeEnvironmentUserAgent)()
12953
- ),
12945
+ headers,
12954
12946
  credentials
12955
12947
  });
12956
12948
  if (response.status === 204) {