@ai-sdk/anthropic 3.0.98 → 3.0.100

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
@@ -12,7 +12,7 @@ import {
12
12
  } from "@ai-sdk/provider-utils";
13
13
 
14
14
  // src/version.ts
15
- var VERSION = true ? "3.0.98" : "0.0.0-test";
15
+ var VERSION = true ? "3.0.100" : "0.0.0-test";
16
16
 
17
17
  // src/anthropic-messages-language-model.ts
18
18
  import {
@@ -3447,6 +3447,13 @@ var AnthropicMessagesLanguageModel = class {
3447
3447
  rejectsSamplingParameters,
3448
3448
  isKnownModel
3449
3449
  } = getModelCapabilities(this.modelId);
3450
+ if (!isKnownModel && maxOutputTokens == null) {
3451
+ warnings.push({
3452
+ type: "compatibility",
3453
+ feature: "maxOutputTokens",
3454
+ details: `The model "${this.modelId}" is unknown. The max output tokens have been limited to ${maxOutputTokensForModel}. Set maxOutputTokens explicitly to override this limit.`
3455
+ });
3456
+ }
3450
3457
  if (rejectsSamplingParameters) {
3451
3458
  if (temperature != null) {
3452
3459
  warnings.push({
@@ -3484,6 +3491,13 @@ var AnthropicMessagesLanguageModel = class {
3484
3491
  description: "Respond with a JSON object.",
3485
3492
  inputSchema: responseFormat.schema
3486
3493
  } : void 0;
3494
+ if (jsonResponseTool != null && (anthropicOptions == null ? void 0 : anthropicOptions.disableParallelToolUse) === false) {
3495
+ warnings.push({
3496
+ type: "unsupported",
3497
+ feature: "providerOptions.anthropic.disableParallelToolUse",
3498
+ details: "`disableParallelToolUse: false` is ignored when using the JSON response tool. Parallel tool use is disabled to ensure a single coherent JSON tool call."
3499
+ });
3500
+ }
3487
3501
  const contextManagement = anthropicOptions == null ? void 0 : anthropicOptions.contextManagement;
3488
3502
  const cacheControlValidator = new CacheControlValidator();
3489
3503
  const toolNameMapping = createToolNameMapping({