@ai-sdk/anthropic 3.0.64 → 3.0.66

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.64" : "0.0.0-test";
15
+ var VERSION = true ? "3.0.66" : "0.0.0-test";
16
16
 
17
17
  // src/anthropic-messages-language-model.ts
18
18
  import {
@@ -2986,6 +2986,7 @@ var AnthropicMessagesLanguageModel = class {
2986
2986
  supportsStructuredOutput: modelSupportsStructuredOutput,
2987
2987
  isKnownModel
2988
2988
  } = getModelCapabilities(this.modelId);
2989
+ const isAnthropicModel = isKnownModel || this.modelId.startsWith("claude-");
2989
2990
  const supportsStructuredOutput = ((_a = this.config.supportsNativeStructuredOutput) != null ? _a : true) && modelSupportsStructuredOutput;
2990
2991
  const supportsStrictTools = ((_b = this.config.supportsStrictTools) != null ? _b : true) && modelSupportsStructuredOutput;
2991
2992
  const structureOutputMode = (_c = anthropicOptions == null ? void 0 : anthropicOptions.structuredOutputMode) != null ? _c : "auto";
@@ -3193,7 +3194,7 @@ var AnthropicMessagesLanguageModel = class {
3193
3194
  }
3194
3195
  baseArgs.max_tokens = maxTokens + (thinkingBudget != null ? thinkingBudget : 0);
3195
3196
  } else {
3196
- if (topP != null && temperature != null) {
3197
+ if (isAnthropicModel && topP != null && temperature != null) {
3197
3198
  warnings.push({
3198
3199
  type: "unsupported",
3199
3200
  feature: "topP",