@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.
@@ -3431,6 +3431,13 @@ var AnthropicMessagesLanguageModel = class {
3431
3431
  rejectsSamplingParameters,
3432
3432
  isKnownModel
3433
3433
  } = getModelCapabilities(this.modelId);
3434
+ if (!isKnownModel && maxOutputTokens == null) {
3435
+ warnings.push({
3436
+ type: "compatibility",
3437
+ feature: "maxOutputTokens",
3438
+ details: `The model "${this.modelId}" is unknown. The max output tokens have been limited to ${maxOutputTokensForModel}. Set maxOutputTokens explicitly to override this limit.`
3439
+ });
3440
+ }
3434
3441
  if (rejectsSamplingParameters) {
3435
3442
  if (temperature != null) {
3436
3443
  warnings.push({
@@ -3468,6 +3475,13 @@ var AnthropicMessagesLanguageModel = class {
3468
3475
  description: "Respond with a JSON object.",
3469
3476
  inputSchema: responseFormat.schema
3470
3477
  } : void 0;
3478
+ if (jsonResponseTool != null && (anthropicOptions == null ? void 0 : anthropicOptions.disableParallelToolUse) === false) {
3479
+ warnings.push({
3480
+ type: "unsupported",
3481
+ feature: "providerOptions.anthropic.disableParallelToolUse",
3482
+ details: "`disableParallelToolUse: false` is ignored when using the JSON response tool. Parallel tool use is disabled to ensure a single coherent JSON tool call."
3483
+ });
3484
+ }
3471
3485
  const contextManagement = anthropicOptions == null ? void 0 : anthropicOptions.contextManagement;
3472
3486
  const cacheControlValidator = new CacheControlValidator();
3473
3487
  const toolNameMapping = createToolNameMapping({
@@ -5897,6 +5911,7 @@ var anthropicTools = {
5897
5911
  export {
5898
5912
  AnthropicMessagesLanguageModel,
5899
5913
  anthropicTools,
5900
- prepareTools
5914
+ prepareTools,
5915
+ sanitizeJsonSchema
5901
5916
  };
5902
5917
  //# sourceMappingURL=index.mjs.map