@ai-sdk/anthropic 4.0.17 → 4.0.18

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.18
4
+
5
+ ### Patch Changes
6
+
7
+ - 97de198: Warn when an unknown model uses the default 4096 max output token limit.
8
+
3
9
  ## 4.0.17
4
10
 
5
11
  ### Patch Changes
package/dist/index.js CHANGED
@@ -3628,6 +3628,13 @@ var AnthropicLanguageModel = class _AnthropicLanguageModel {
3628
3628
  supportsXhighEffort,
3629
3629
  isKnownModel
3630
3630
  } = getModelCapabilities(this.modelId);
3631
+ if (!isKnownModel && maxOutputTokens == null) {
3632
+ warnings.push({
3633
+ type: "compatibility",
3634
+ feature: "maxOutputTokens",
3635
+ details: `The model "${this.modelId}" is unknown. The max output tokens have been limited to ${maxOutputTokensForModel}. Set maxOutputTokens explicitly to override this limit.`
3636
+ });
3637
+ }
3631
3638
  if (rejectsSamplingParameters) {
3632
3639
  if (temperature != null) {
3633
3640
  warnings.push({
@@ -6340,7 +6347,7 @@ var AnthropicSkills = class {
6340
6347
  };
6341
6348
 
6342
6349
  // src/version.ts
6343
- var VERSION = true ? "4.0.17" : "0.0.0-test";
6350
+ var VERSION = true ? "4.0.18" : "0.0.0-test";
6344
6351
 
6345
6352
  // src/anthropic-provider.ts
6346
6353
  var ANTHROPIC_API_URL = "https://api.anthropic.com";