@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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ai-sdk/anthropic",
3
- "version": "4.0.48",
3
+ "version": "4.0.49",
4
4
  "type": "module",
5
5
  "license": "Apache-2.0",
6
6
  "sideEffects": false,
@@ -2887,7 +2887,7 @@ export function getModelCapabilities(modelId: string): {
2887
2887
  rejectsThinkingDisabledAboveHighEffort: false,
2888
2888
  isKnownModel: true,
2889
2889
  };
2890
- } else if (modelId.includes('claude-sonnet-4-')) {
2890
+ } else if (/claude-sonnet-4(?:-|@)/.test(modelId)) {
2891
2891
  return {
2892
2892
  maxOutputTokens: 64000,
2893
2893
  supportsStructuredOutput: false,
@@ -2897,7 +2897,7 @@ export function getModelCapabilities(modelId: string): {
2897
2897
  rejectsThinkingDisabledAboveHighEffort: false,
2898
2898
  isKnownModel: true,
2899
2899
  };
2900
- } else if (modelId.includes('claude-opus-4-')) {
2900
+ } else if (/claude-opus-4(?:-|@)/.test(modelId)) {
2901
2901
  return {
2902
2902
  maxOutputTokens: 32000,
2903
2903
  supportsStructuredOutput: false,