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

@@ -299,7 +299,7 @@ function applyThinkingLevelMetadata(model: Model<any>): void {
(model.api === "anthropic-messages" || model.api === "bedrock-converse-stream") &&
model.id.includes("fable-5")
) {
mergeThinkingLevelMap(model, { xhigh: "xhigh" });
mergeThinkingLevelMap(model, { off: null, xhigh: "xhigh" });
}
if (model.api === "anthropic-messages" && isAnthropicAdaptiveThinkingModel(model.id)) {
mergeAnthropicMessagesCompat(model, { forceAdaptiveThinking: true });