ai 5.0.104 → 5.0.106
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 +13 -0
- package/dist/index.js +7 -4
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +7 -4
- 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/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,18 @@
|
|
|
1
1
|
# ai
|
|
2
2
|
|
|
3
|
+
## 5.0.106
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies [667f74c]
|
|
8
|
+
- @ai-sdk/gateway@2.0.18
|
|
9
|
+
|
|
10
|
+
## 5.0.105
|
|
11
|
+
|
|
12
|
+
### Patch Changes
|
|
13
|
+
|
|
14
|
+
- 1063aca: fix(ai): Preverse providerMetadata in tool-call and tool-result parts
|
|
15
|
+
|
|
3
16
|
## 5.0.104
|
|
4
17
|
|
|
5
18
|
### Patch Changes
|
package/dist/index.js
CHANGED
|
@@ -777,7 +777,7 @@ function detectMediaType({
|
|
|
777
777
|
var import_provider_utils2 = require("@ai-sdk/provider-utils");
|
|
778
778
|
|
|
779
779
|
// src/version.ts
|
|
780
|
-
var VERSION = true ? "5.0.
|
|
780
|
+
var VERSION = true ? "5.0.106" : "0.0.0-test";
|
|
781
781
|
|
|
782
782
|
// src/util/download/download.ts
|
|
783
783
|
var download = async ({ url }) => {
|
|
@@ -1969,7 +1969,8 @@ async function parseToolCall({
|
|
|
1969
1969
|
input,
|
|
1970
1970
|
dynamic: true,
|
|
1971
1971
|
invalid: true,
|
|
1972
|
-
error
|
|
1972
|
+
error,
|
|
1973
|
+
providerMetadata: toolCall.providerMetadata
|
|
1973
1974
|
};
|
|
1974
1975
|
}
|
|
1975
1976
|
}
|
|
@@ -5935,7 +5936,8 @@ function convertToModelMessages(messages, options) {
|
|
|
5935
5936
|
output: part.state === "output-error" ? part.errorText : part.output,
|
|
5936
5937
|
tool: (_b = options == null ? void 0 : options.tools) == null ? void 0 : _b[toolName],
|
|
5937
5938
|
errorMode: part.state === "output-error" ? "json" : "none"
|
|
5938
|
-
})
|
|
5939
|
+
}),
|
|
5940
|
+
...part.callProviderMetadata != null ? { providerOptions: part.callProviderMetadata } : {}
|
|
5939
5941
|
});
|
|
5940
5942
|
}
|
|
5941
5943
|
}
|
|
@@ -5976,7 +5978,8 @@ function convertToModelMessages(messages, options) {
|
|
|
5976
5978
|
output: toolPart.state === "output-error" ? toolPart.errorText : toolPart.output,
|
|
5977
5979
|
tool: (_a17 = options == null ? void 0 : options.tools) == null ? void 0 : _a17[toolName],
|
|
5978
5980
|
errorMode: toolPart.state === "output-error" ? "text" : "none"
|
|
5979
|
-
})
|
|
5981
|
+
}),
|
|
5982
|
+
...toolPart.callProviderMetadata != null ? { providerOptions: toolPart.callProviderMetadata } : {}
|
|
5980
5983
|
};
|
|
5981
5984
|
}
|
|
5982
5985
|
default: {
|