summaryrefslogtreecommitdiffhomepage
path: root/patches/@ai-sdk%[email protected]
diff options
context:
space:
mode:
authorAiden Cline <[email protected]>2026-04-06 18:28:32 -0700
committerGitHub <[email protected]>2026-04-06 20:28:32 -0500
commit3c31d046669ca8df09798f690ef5c9cf17021ddd (patch)
tree1307d0d8834888eb04f18dbb4bf802b0772eee0f /patches/@ai-sdk%[email protected]
parente64548fb4df1a9e23b13e3ef7ff7a63c84dababb (diff)
downloadopencode-3c31d046669ca8df09798f690ef5c9cf17021ddd.tar.gz
opencode-3c31d046669ca8df09798f690ef5c9cf17021ddd.zip
chore: bump anthropic ai sdk pkg, delete patch (#21247)
Diffstat (limited to 'patches/@ai-sdk%[email protected]')
-rw-r--r--patches/@ai-sdk%[email protected]119
1 files changed, 0 insertions, 119 deletions
diff --git a/patches/@ai-sdk%[email protected] b/patches/@ai-sdk%[email protected]
deleted file mode 100644
index b8c2f387d..000000000
--- a/patches/@ai-sdk%[email protected]
+++ /dev/null
@@ -1,119 +0,0 @@
---- 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: