From 82b5459f8c8e0796ef50eadd6ba458126e5742a4 Mon Sep 17 00:00:00 2001 From: uinstinct <61635505+uinstinct@users.noreply.github.com> Date: Fri, 17 Oct 2025 08:24:24 +0530 Subject: [PATCH 1/4] fix: prevent anthropic 3.5 models from use thinking --- core/llm/autodetect.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/core/llm/autodetect.ts b/core/llm/autodetect.ts index 2ccc325cfba..f3e3cdd1c04 100644 --- a/core/llm/autodetect.ts +++ b/core/llm/autodetect.ts @@ -142,7 +142,10 @@ function modelSupportsReasoning( if (!model) { return false; } - if ("anthropic" === model.underlyingProviderName) { + if ( + "anthropic" === model.underlyingProviderName && + !model.model.includes("3-5") + ) { return true; } if (model.model.includes("deepseek-r")) { From 6d9d814b3c9b232c5e376fdc45a1bf9607a26548 Mon Sep 17 00:00:00 2001 From: uinstinct <61635505+uinstinct@users.noreply.github.com> Date: Fri, 17 Oct 2025 14:09:23 +0530 Subject: [PATCH 2/4] turn off for all claude 3 models --- core/llm/autodetect.ts | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/core/llm/autodetect.ts b/core/llm/autodetect.ts index f3e3cdd1c04..7a50bbfb757 100644 --- a/core/llm/autodetect.ts +++ b/core/llm/autodetect.ts @@ -142,10 +142,8 @@ function modelSupportsReasoning( if (!model) { return false; } - if ( - "anthropic" === model.underlyingProviderName && - !model.model.includes("3-5") - ) { + // do not turn reasoning on by default for claude 3 models + if (model.model.includes("claude") && !model.model.includes("3")) { return true; } if (model.model.includes("deepseek-r")) { From 3d35c2078d7cc55ee0d850289a88021f32aabc06 Mon Sep 17 00:00:00 2001 From: uinstinct <61635505+uinstinct@users.noreply.github.com> Date: Mon, 20 Oct 2025 11:54:06 +0530 Subject: [PATCH 3/4] use -3- --- core/llm/autodetect.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/llm/autodetect.ts b/core/llm/autodetect.ts index 7a50bbfb757..8f5c7e8be1e 100644 --- a/core/llm/autodetect.ts +++ b/core/llm/autodetect.ts @@ -143,7 +143,7 @@ function modelSupportsReasoning( return false; } // do not turn reasoning on by default for claude 3 models - if (model.model.includes("claude") && !model.model.includes("3")) { + if (model.model.includes("claude") && !model.model.includes("-3-")) { return true; } if (model.model.includes("deepseek-r")) { From 5519cebb5565adf78e2a8cd338315122db921bdc Mon Sep 17 00:00:00 2001 From: Dallin Romney Date: Wed, 22 Oct 2025 15:23:08 -0700 Subject: [PATCH 4/4] fix: add 3.5 exclusion for thinking --- core/llm/autodetect.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/core/llm/autodetect.ts b/core/llm/autodetect.ts index 8f5c7e8be1e..ad0bb85e7ad 100644 --- a/core/llm/autodetect.ts +++ b/core/llm/autodetect.ts @@ -143,7 +143,11 @@ function modelSupportsReasoning( return false; } // do not turn reasoning on by default for claude 3 models - if (model.model.includes("claude") && !model.model.includes("-3-")) { + if ( + model.model.includes("claude") && + !model.model.includes("-3-") && + !model.model.includes("-3.5-") + ) { return true; } if (model.model.includes("deepseek-r")) {