@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.
@@ -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 : "unknown"
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 : "unknown"
2619
+ error_code: (_s = errorValue.errorCode) != null ? _s : "unavailable"
2620
2620
  },
2621
2621
  cache_control: cacheControl
2622
2622
  });