@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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ai-sdk/anthropic",
3
- "version": "3.0.58",
3
+ "version": "3.0.60",
4
4
  "license": "Apache-2.0",
5
5
  "sideEffects": false,
6
6
  "main": "./dist/index.js",
@@ -37,7 +37,7 @@
37
37
  },
38
38
  "dependencies": {
39
39
  "@ai-sdk/provider": "3.0.8",
40
- "@ai-sdk/provider-utils": "4.0.19"
40
+ "@ai-sdk/provider-utils": "4.0.20"
41
41
  },
42
42
  "devDependencies": {
43
43
  "@types/node": "20.17.24",
@@ -884,7 +884,7 @@ export async function convertToAnthropicMessagesPrompt({
884
884
  errorCode:
885
885
  typeof extractedErrorCode === 'string'
886
886
  ? extractedErrorCode
887
- : 'unknown',
887
+ : 'unavailable',
888
888
  };
889
889
  }
890
890
 
@@ -893,7 +893,7 @@ export async function convertToAnthropicMessagesPrompt({
893
893
  tool_use_id: part.toolCallId,
894
894
  content: {
895
895
  type: 'web_fetch_tool_result_error',
896
- error_code: errorValue.errorCode ?? 'unknown',
896
+ error_code: errorValue.errorCode ?? 'unavailable',
897
897
  },
898
898
  cache_control: cacheControl,
899
899
  });