Skip to content

Commit aff2f31

Browse files
uinstinctRomneyDa
andauthored
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 <[email protected]>
1 parent 5eb9f4a commit aff2f31

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

core/llm/autodetect.ts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,12 @@ function modelSupportsReasoning(
144144
if (!model) {
145145
return false;
146146
}
147-
if ("anthropic" === model.underlyingProviderName) {
147+
// do not turn reasoning on by default for claude 3 models
148+
if (
149+
model.model.includes("claude") &&
150+
!model.model.includes("-3-") &&
151+
!model.model.includes("-3.5-")
152+
) {
148153
return true;
149154
}
150155
if (model.model.includes("deepseek-r")) {

0 commit comments

Comments
 (0)