ai 5.0.152 → 5.0.153
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 +6 -0
- package/dist/index.js +6 -14
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +7 -17
- package/dist/index.mjs.map +1 -1
- package/dist/internal/index.js +1 -1
- package/dist/internal/index.mjs +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
package/dist/index.js
CHANGED
|
@@ -779,7 +779,7 @@ var import_provider_utils2 = require("@ai-sdk/provider-utils");
|
|
|
779
779
|
var import_provider_utils3 = require("@ai-sdk/provider-utils");
|
|
780
780
|
|
|
781
781
|
// src/version.ts
|
|
782
|
-
var VERSION = true ? "5.0.
|
|
782
|
+
var VERSION = true ? "5.0.153" : "0.0.0-test";
|
|
783
783
|
|
|
784
784
|
// src/util/download/download.ts
|
|
785
785
|
var download = async ({
|
|
@@ -9107,14 +9107,10 @@ var HttpChatTransport = class {
|
|
|
9107
9107
|
const fetch2 = (_d = this.fetch) != null ? _d : globalThis.fetch;
|
|
9108
9108
|
const response = await fetch2(api, {
|
|
9109
9109
|
method: "POST",
|
|
9110
|
-
headers:
|
|
9111
|
-
|
|
9112
|
-
|
|
9113
|
-
|
|
9114
|
-
},
|
|
9115
|
-
`ai-sdk/${VERSION}`,
|
|
9116
|
-
(0, import_provider_utils30.getRuntimeEnvironmentUserAgent)()
|
|
9117
|
-
),
|
|
9110
|
+
headers: {
|
|
9111
|
+
"Content-Type": "application/json",
|
|
9112
|
+
...headers
|
|
9113
|
+
},
|
|
9118
9114
|
body: JSON.stringify(body),
|
|
9119
9115
|
credentials,
|
|
9120
9116
|
signal: abortSignal
|
|
@@ -9152,11 +9148,7 @@ var HttpChatTransport = class {
|
|
|
9152
9148
|
const fetch2 = (_d = this.fetch) != null ? _d : globalThis.fetch;
|
|
9153
9149
|
const response = await fetch2(api, {
|
|
9154
9150
|
method: "GET",
|
|
9155
|
-
headers
|
|
9156
|
-
headers,
|
|
9157
|
-
`ai-sdk/${VERSION}`,
|
|
9158
|
-
(0, import_provider_utils30.getRuntimeEnvironmentUserAgent)()
|
|
9159
|
-
),
|
|
9151
|
+
headers,
|
|
9160
9152
|
credentials
|
|
9161
9153
|
});
|
|
9162
9154
|
if (response.status === 204) {
|