@ai-sdk/anthropic 3.0.58 → 3.0.60
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 +3 -3
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +3 -3
- package/dist/index.mjs.map +1 -1
- package/dist/internal/index.js +2 -2
- package/dist/internal/index.js.map +1 -1
- package/dist/internal/index.mjs +2 -2
- package/dist/internal/index.mjs.map +1 -1
- package/package.json +2 -2
- package/src/convert-to-anthropic-messages-prompt.ts +2 -2
package/dist/index.mjs
CHANGED
|
@@ -12,7 +12,7 @@ import {
|
|
|
12
12
|
} from "@ai-sdk/provider-utils";
|
|
13
13
|
|
|
14
14
|
// src/version.ts
|
|
15
|
-
var VERSION = true ? "3.0.
|
|
15
|
+
var VERSION = true ? "3.0.60" : "0.0.0-test";
|
|
16
16
|
|
|
17
17
|
// src/anthropic-messages-language-model.ts
|
|
18
18
|
import {
|
|
@@ -2624,7 +2624,7 @@ async function convertToAnthropicMessagesPrompt({
|
|
|
2624
2624
|
} catch (e) {
|
|
2625
2625
|
const extractedErrorCode = (_r = output.value) == null ? void 0 : _r.errorCode;
|
|
2626
2626
|
errorValue = {
|
|
2627
|
-
errorCode: typeof extractedErrorCode === "string" ? extractedErrorCode : "
|
|
2627
|
+
errorCode: typeof extractedErrorCode === "string" ? extractedErrorCode : "unavailable"
|
|
2628
2628
|
};
|
|
2629
2629
|
}
|
|
2630
2630
|
anthropicContent.push({
|
|
@@ -2632,7 +2632,7 @@ async function convertToAnthropicMessagesPrompt({
|
|
|
2632
2632
|
tool_use_id: part.toolCallId,
|
|
2633
2633
|
content: {
|
|
2634
2634
|
type: "web_fetch_tool_result_error",
|
|
2635
|
-
error_code: (_s = errorValue.errorCode) != null ? _s : "
|
|
2635
|
+
error_code: (_s = errorValue.errorCode) != null ? _s : "unavailable"
|
|
2636
2636
|
},
|
|
2637
2637
|
cache_control: cacheControl
|
|
2638
2638
|
});
|