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 <dallinromney@gmail.com>
This commit is contained in:
parent
5eb9f4a9bf
commit
aff2f31fec
1 changed files with 6 additions and 1 deletions
|
|
@ -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")) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue