@ai-sdk/anthropic 3.0.59 → 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 +6 -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 +1 -1
- package/src/convert-to-anthropic-messages-prompt.ts +2 -2
package/dist/internal/index.mjs
CHANGED
|
@@ -2608,7 +2608,7 @@ async function convertToAnthropicMessagesPrompt({
|
|
|
2608
2608
|
} catch (e) {
|
|
2609
2609
|
const extractedErrorCode = (_r = output.value) == null ? void 0 : _r.errorCode;
|
|
2610
2610
|
errorValue = {
|
|
2611
|
-
errorCode: typeof extractedErrorCode === "string" ? extractedErrorCode : "
|
|
2611
|
+
errorCode: typeof extractedErrorCode === "string" ? extractedErrorCode : "unavailable"
|
|
2612
2612
|
};
|
|
2613
2613
|
}
|
|
2614
2614
|
anthropicContent.push({
|
|
@@ -2616,7 +2616,7 @@ async function convertToAnthropicMessagesPrompt({
|
|
|
2616
2616
|
tool_use_id: part.toolCallId,
|
|
2617
2617
|
content: {
|
|
2618
2618
|
type: "web_fetch_tool_result_error",
|
|
2619
|
-
error_code: (_s = errorValue.errorCode) != null ? _s : "
|
|
2619
|
+
error_code: (_s = errorValue.errorCode) != null ? _s : "unavailable"
|
|
2620
2620
|
},
|
|
2621
2621
|
cache_control: cacheControl
|
|
2622
2622
|
});
|