@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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ai-sdk/anthropic",
3
- "version": "4.0.17",
3
+ "version": "4.0.18",
4
4
  "type": "module",
5
5
  "license": "Apache-2.0",
6
6
  "sideEffects": false,
@@ -301,6 +301,17 @@ export class AnthropicLanguageModel implements LanguageModelV4 {
301
301
  isKnownModel,
302
302
  } = getModelCapabilities(this.modelId);
303
303
 
304
+ if (!isKnownModel && maxOutputTokens == null) {
305
+ warnings.push({
306
+ type: 'compatibility',
307
+ feature: 'maxOutputTokens',
308
+ details:
309
+ `The model "${this.modelId}" is unknown. ` +
310
+ `The max output tokens have been limited to ${maxOutputTokensForModel}. ` +
311
+ `Set maxOutputTokens explicitly to override this limit.`,
312
+ });
313
+ }
314
+
304
315
  if (rejectsSamplingParameters) {
305
316
  if (temperature != null) {
306
317
  warnings.push({