@ai-sdk/anthropic 4.0.0-beta.0 → 4.0.0-beta.2
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/internal/index.js
CHANGED
|
@@ -2579,7 +2579,7 @@ async function convertToAnthropicMessagesPrompt({
|
|
|
2579
2579
|
} catch (e) {
|
|
2580
2580
|
const extractedErrorCode = (_r = output.value) == null ? void 0 : _r.errorCode;
|
|
2581
2581
|
errorValue = {
|
|
2582
|
-
errorCode: typeof extractedErrorCode === "string" ? extractedErrorCode : "
|
|
2582
|
+
errorCode: typeof extractedErrorCode === "string" ? extractedErrorCode : "unavailable"
|
|
2583
2583
|
};
|
|
2584
2584
|
}
|
|
2585
2585
|
anthropicContent.push({
|
|
@@ -2587,7 +2587,7 @@ async function convertToAnthropicMessagesPrompt({
|
|
|
2587
2587
|
tool_use_id: part.toolCallId,
|
|
2588
2588
|
content: {
|
|
2589
2589
|
type: "web_fetch_tool_result_error",
|
|
2590
|
-
error_code: (_s = errorValue.errorCode) != null ? _s : "
|
|
2590
|
+
error_code: (_s = errorValue.errorCode) != null ? _s : "unavailable"
|
|
2591
2591
|
},
|
|
2592
2592
|
cache_control: cacheControl
|
|
2593
2593
|
});
|