@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.
@@ -5802,7 +5802,7 @@ function getModelCapabilities(modelId) {
5802
5802
  rejectsThinkingDisabledAboveHighEffort: false,
5803
5803
  isKnownModel: true
5804
5804
  };
5805
- } else if (modelId.includes("claude-sonnet-4-")) {
5805
+ } else if (/claude-sonnet-4(?:-|@)/.test(modelId)) {
5806
5806
  return {
5807
5807
  maxOutputTokens: 64e3,
5808
5808
  supportsStructuredOutput: false,
@@ -5812,7 +5812,7 @@ function getModelCapabilities(modelId) {
5812
5812
  rejectsThinkingDisabledAboveHighEffort: false,
5813
5813
  isKnownModel: true
5814
5814
  };
5815
- } else if (modelId.includes("claude-opus-4-")) {
5815
+ } else if (/claude-opus-4(?:-|@)/.test(modelId)) {
5816
5816
  return {
5817
5817
  maxOutputTokens: 32e3,
5818
5818
  supportsStructuredOutput: false,