fix(ai): omit disabled thinking for Claude Fable 5

This commit is contained in:
Armin Ronacher
2026-06-10 00:27:11 +02:00
parent dacb367e9e
commit 9ccfcd7cfc
5 changed files with 17 additions and 4 deletions

View File

@@ -972,7 +972,7 @@ function buildParams(
display,
};
}
} else if (options?.thinkingEnabled === false) {
} else if (options?.thinkingEnabled === false && model.thinkingLevelMap?.off !== null) {
params.thinking = { type: "disabled" };
}
}