@fairyhunter13/ai-anthropic 3.0.74-fork → 3.0.74-fork.1
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.js
CHANGED
|
@@ -3739,6 +3739,15 @@ var AnthropicLanguageModel = class _AnthropicLanguageModel {
|
|
|
3739
3739
|
});
|
|
3740
3740
|
}
|
|
3741
3741
|
baseArgs.max_tokens = maxTokens + (thinkingBudget != null ? thinkingBudget : 0);
|
|
3742
|
+
} else {
|
|
3743
|
+
if (isAnthropicModel && topP != null && temperature != null) {
|
|
3744
|
+
warnings.push({
|
|
3745
|
+
type: "unsupported",
|
|
3746
|
+
feature: "topP",
|
|
3747
|
+
details: `topP is not supported when temperature is set. topP is ignored.`
|
|
3748
|
+
});
|
|
3749
|
+
baseArgs.top_p = void 0;
|
|
3750
|
+
}
|
|
3742
3751
|
}
|
|
3743
3752
|
const effectiveMaxTokens = (anthropicOptions == null ? void 0 : anthropicOptions.output300k) ? Math.max(maxOutputTokensForModel, 3e5) : maxOutputTokensForModel;
|
|
3744
3753
|
if (isKnownModel && baseArgs.max_tokens > effectiveMaxTokens) {
|
|
@@ -3761,7 +3770,6 @@ var AnthropicLanguageModel = class _AnthropicLanguageModel {
|
|
|
3761
3770
|
}
|
|
3762
3771
|
}
|
|
3763
3772
|
if ((anthropicOptions == null ? void 0 : anthropicOptions.container) && anthropicOptions.container.skills && anthropicOptions.container.skills.length > 0) {
|
|
3764
|
-
betas.add("code-execution-2025-08-25");
|
|
3765
3773
|
betas.add("skills-2025-10-02");
|
|
3766
3774
|
betas.add("files-api-2025-04-14");
|
|
3767
3775
|
if (!(tools == null ? void 0 : tools.some(
|