@ai-sdk/anthropic 4.0.61 → 4.0.62

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": "4.0.61",
3
+ "version": "4.0.62",
4
4
  "type": "module",
5
5
  "license": "Apache-2.0",
6
6
  "sideEffects": false,
@@ -36,7 +36,7 @@
36
36
  },
37
37
  "dependencies": {
38
38
  "@ai-sdk/provider": "4.0.18",
39
- "@ai-sdk/provider-utils": "5.0.46"
39
+ "@ai-sdk/provider-utils": "5.0.47"
40
40
  },
41
41
  "devDependencies": {
42
42
  "@ai-sdk/test-server": "2.0.1",
@@ -837,7 +837,7 @@ function convertAnthropicBatchResponse(
837
837
  toolName,
838
838
  input: JSON.stringify(
839
839
  isCodeExecutionAlias
840
- ? { type: part.name, ...(part.input ?? {}) }
840
+ ? { type: part.name, ...part.input }
841
841
  : part.name === 'code_execution' &&
842
842
  part.input != null &&
843
843
  'code' in part.input &&
@@ -33,6 +33,4 @@ export function forwardAnthropicContainerIdFromLastStep({
33
33
  };
34
34
  }
35
35
  }
36
-
37
- return undefined;
38
36
  }