From aff2f31fec5d015dddceb4672752b2598c009a0b Mon Sep 17 00:00:00 2001 From: Aditya Mitra <61635505+uinstinct@users.noreply.github.com> Date: Fri, 24 Oct 2025 02:25:01 +0530 Subject: [PATCH] fix: prevent anthropic 3.5 models from use thinking (#8303) * fix: prevent anthropic 3.5 models from use thinking * turn off for all claude 3 models * use -3- * fix: add 3.5 exclusion for thinking --------- Co-authored-by: Dallin Romney --- core/llm/autodetect.ts | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/core/llm/autodetect.ts b/core/llm/autodetect.ts index 2bf3b10e1..28d28f335 100644 --- a/core/llm/autodetect.ts +++ b/core/llm/autodetect.ts @@ -144,7 +144,12 @@ function modelSupportsReasoning( if (!model) { return false; } - if ("anthropic" === model.underlyingProviderName) { + // do not turn reasoning on by default for claude 3 models + if ( + model.model.includes("claude") && + !model.model.includes("-3-") && + !model.model.includes("-3.5-") + ) { return true; } if (model.model.includes("deepseek-r")) {