@ai-sdk/anthropic 2.0.88 → 2.0.89

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/dist/index.mjs CHANGED
@@ -11,7 +11,7 @@ import {
11
11
  } from "@ai-sdk/provider-utils";
12
12
 
13
13
  // src/version.ts
14
- var VERSION = true ? "2.0.88" : "0.0.0-test";
14
+ var VERSION = true ? "2.0.89" : "0.0.0-test";
15
15
 
16
16
  // src/anthropic-messages-language-model.ts
17
17
  import {
@@ -2294,6 +2294,12 @@ var AnthropicMessagesLanguageModel = class {
2294
2294
  rejectsSamplingParameters,
2295
2295
  isKnownModel
2296
2296
  } = getModelCapabilities(this.modelId);
2297
+ if (!isKnownModel && maxOutputTokens == null) {
2298
+ warnings.push({
2299
+ type: "other",
2300
+ message: `The model "${this.modelId}" is unknown. The max output tokens have been limited to ${maxOutputTokensForModel}. Set maxOutputTokens explicitly to override this limit.`
2301
+ });
2302
+ }
2297
2303
  if (rejectsSamplingParameters) {
2298
2304
  if (temperature != null) {
2299
2305
  warnings.push({