1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
|
--- a/dist/index.js
+++ b/dist/index.js
@@ -3155,15 +3155,6 @@
});
}
baseArgs.max_tokens = maxTokens + (thinkingBudget != null ? thinkingBudget : 0);
- } else {
- if (topP != null && temperature != null) {
- warnings.push({
- type: "unsupported",
- feature: "topP",
- details: `topP is not supported when temperature is set. topP is ignored.`
- });
- baseArgs.top_p = void 0;
- }
}
if (isKnownModel && baseArgs.max_tokens > maxOutputTokensForModel) {
if (maxOutputTokens != null) {
@@ -5180,4 +5171,4 @@
createAnthropic,
forwardAnthropicContainerIdFromLastStep
});
-//# sourceMappingURL=index.js.map
\ No newline at end of file
+//# sourceMappingURL=index.js.map
--- a/dist/index.mjs
+++ b/dist/index.mjs
@@ -3192,15 +3192,6 @@
});
}
baseArgs.max_tokens = maxTokens + (thinkingBudget != null ? thinkingBudget : 0);
- } else {
- if (topP != null && temperature != null) {
- warnings.push({
- type: "unsupported",
- feature: "topP",
- details: `topP is not supported when temperature is set. topP is ignored.`
- });
- baseArgs.top_p = void 0;
- }
}
if (isKnownModel && baseArgs.max_tokens > maxOutputTokensForModel) {
if (maxOutputTokens != null) {
@@ -5256,4 +5247,4 @@
createAnthropic,
forwardAnthropicContainerIdFromLastStep
};
-//# sourceMappingURL=index.mjs.map
\ No newline at end of file
+//# sourceMappingURL=index.mjs.map
--- a/dist/internal/index.js
+++ b/dist/internal/index.js
@@ -3147,15 +3147,6 @@
});
}
baseArgs.max_tokens = maxTokens + (thinkingBudget != null ? thinkingBudget : 0);
- } else {
- if (topP != null && temperature != null) {
- warnings.push({
- type: "unsupported",
- feature: "topP",
- details: `topP is not supported when temperature is set. topP is ignored.`
- });
- baseArgs.top_p = void 0;
- }
}
if (isKnownModel && baseArgs.max_tokens > maxOutputTokensForModel) {
if (maxOutputTokens != null) {
@@ -5080,4 +5071,4 @@
anthropicTools,
prepareTools
});
-//# sourceMappingURL=index.js.map
\ No newline at end of file
+//# sourceMappingURL=index.js.map
--- a/dist/internal/index.mjs
+++ b/dist/internal/index.mjs
@@ -3176,15 +3176,6 @@
});
}
baseArgs.max_tokens = maxTokens + (thinkingBudget != null ? thinkingBudget : 0);
- } else {
- if (topP != null && temperature != null) {
- warnings.push({
- type: "unsupported",
- feature: "topP",
- details: `topP is not supported when temperature is set. topP is ignored.`
- });
- baseArgs.top_p = void 0;
- }
}
if (isKnownModel && baseArgs.max_tokens > maxOutputTokensForModel) {
if (maxOutputTokens != null) {
@@ -5148,4 +5139,4 @@
anthropicTools,
prepareTools
};
-//# sourceMappingURL=index.mjs.map
\ No newline at end of file
+//# sourceMappingURL=index.mjs.map
--- a/src/anthropic-messages-language-model.ts
+++ b/src/anthropic-messages-language-model.ts
@@ -534,16 +534,6 @@
// adjust max tokens to account for thinking:
baseArgs.max_tokens = maxTokens + (thinkingBudget ?? 0);
- } else {
- // Only check temperature/topP mutual exclusivity when thinking is not enabled
- if (topP != null && temperature != null) {
- warnings.push({
- type: 'unsupported',
- feature: 'topP',
- details: `topP is not supported when temperature is set. topP is ignored.`,
- });
- baseArgs.top_p = undefined;
- }
}
// limit to max output tokens for known models to enable model switching without breaking it:
|