@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.
@@ -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 : "unknown"
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 : "unknown"
2590
+ error_code: (_s = errorValue.errorCode) != null ? _s : "unavailable"
2591
2591
  },
2592
2592
  cache_control: cacheControl
2593
2593
  });