ai 5.0.152 → 5.0.154
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 +15 -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 +2 -2
package/dist/index.mjs
CHANGED
|
@@ -689,7 +689,7 @@ import {
|
|
|
689
689
|
} from "@ai-sdk/provider-utils";
|
|
690
690
|
|
|
691
691
|
// src/version.ts
|
|
692
|
-
var VERSION = true ? "5.0.
|
|
692
|
+
var VERSION = true ? "5.0.154" : "0.0.0-test";
|
|
693
693
|
|
|
694
694
|
// src/util/download/download.ts
|
|
695
695
|
var download = async ({
|
|
@@ -9015,9 +9015,7 @@ import { parseJsonEventStream as parseJsonEventStream2 } from "@ai-sdk/provider-
|
|
|
9015
9015
|
// src/ui/http-chat-transport.ts
|
|
9016
9016
|
import {
|
|
9017
9017
|
normalizeHeaders,
|
|
9018
|
-
resolve
|
|
9019
|
-
withUserAgentSuffix as withUserAgentSuffix10,
|
|
9020
|
-
getRuntimeEnvironmentUserAgent as getRuntimeEnvironmentUserAgent3
|
|
9018
|
+
resolve
|
|
9021
9019
|
} from "@ai-sdk/provider-utils";
|
|
9022
9020
|
var HttpChatTransport = class {
|
|
9023
9021
|
constructor({
|
|
@@ -9074,14 +9072,10 @@ var HttpChatTransport = class {
|
|
|
9074
9072
|
const fetch2 = (_d = this.fetch) != null ? _d : globalThis.fetch;
|
|
9075
9073
|
const response = await fetch2(api, {
|
|
9076
9074
|
method: "POST",
|
|
9077
|
-
headers:
|
|
9078
|
-
|
|
9079
|
-
|
|
9080
|
-
|
|
9081
|
-
},
|
|
9082
|
-
`ai-sdk/${VERSION}`,
|
|
9083
|
-
getRuntimeEnvironmentUserAgent3()
|
|
9084
|
-
),
|
|
9075
|
+
headers: {
|
|
9076
|
+
"Content-Type": "application/json",
|
|
9077
|
+
...headers
|
|
9078
|
+
},
|
|
9085
9079
|
body: JSON.stringify(body),
|
|
9086
9080
|
credentials,
|
|
9087
9081
|
signal: abortSignal
|
|
@@ -9119,11 +9113,7 @@ var HttpChatTransport = class {
|
|
|
9119
9113
|
const fetch2 = (_d = this.fetch) != null ? _d : globalThis.fetch;
|
|
9120
9114
|
const response = await fetch2(api, {
|
|
9121
9115
|
method: "GET",
|
|
9122
|
-
headers
|
|
9123
|
-
headers,
|
|
9124
|
-
`ai-sdk/${VERSION}`,
|
|
9125
|
-
getRuntimeEnvironmentUserAgent3()
|
|
9126
|
-
),
|
|
9116
|
+
headers,
|
|
9127
9117
|
credentials
|
|
9128
9118
|
});
|
|
9129
9119
|
if (response.status === 204) {
|