@ai-sdk/anthropic 4.0.48 → 4.0.49

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 CHANGED
@@ -1,5 +1,11 @@
1
1
  # @ai-sdk/anthropic
2
2
 
3
+ ## 4.0.49
4
+
5
+ ### Patch Changes
6
+
7
+ - 65397d7: fix(anthropic): recognize dated Google Vertex Claude 4 model IDs when selecting model capabilities
8
+
3
9
  ## 4.0.48
4
10
 
5
11
  ### Patch Changes
package/dist/index.js CHANGED
@@ -5842,7 +5842,7 @@ function getModelCapabilities(modelId) {
5842
5842
  rejectsThinkingDisabledAboveHighEffort: false,
5843
5843
  isKnownModel: true
5844
5844
  };
5845
- } else if (modelId.includes("claude-sonnet-4-")) {
5845
+ } else if (/claude-sonnet-4(?:-|@)/.test(modelId)) {
5846
5846
  return {
5847
5847
  maxOutputTokens: 64e3,
5848
5848
  supportsStructuredOutput: false,
@@ -5852,7 +5852,7 @@ function getModelCapabilities(modelId) {
5852
5852
  rejectsThinkingDisabledAboveHighEffort: false,
5853
5853
  isKnownModel: true
5854
5854
  };
5855
- } else if (modelId.includes("claude-opus-4-")) {
5855
+ } else if (/claude-opus-4(?:-|@)/.test(modelId)) {
5856
5856
  return {
5857
5857
  maxOutputTokens: 32e3,
5858
5858
  supportsStructuredOutput: false,
@@ -7563,7 +7563,7 @@ var AnthropicSkills = class {
7563
7563
  };
7564
7564
 
7565
7565
  // src/version.ts
7566
- var VERSION = true ? "4.0.48" : "0.0.0-test";
7566
+ var VERSION = true ? "4.0.49" : "0.0.0-test";
7567
7567
 
7568
7568
  // src/anthropic-provider.ts
7569
7569
  var ANTHROPIC_API_URL = "https://api.anthropic.com";