diff --git a/src/hooks/anthropic-effort/hook.ts b/src/hooks/anthropic-effort/hook.ts index fb5a9a209..31b18c7e6 100644 --- a/src/hooks/anthropic-effort/hook.ts +++ b/src/hooks/anthropic-effort/hook.ts @@ -62,11 +62,11 @@ export function createAnthropicEffortHook() { ): Promise => { const { agent, model, message } = input if (!model?.modelID || !model?.providerID) return + if (isEffortUnsupportedModel(model.modelID)) return if (message.variant !== "max") return if (!isClaudeProvider(model.providerID, model.modelID)) return if (shouldSkipForInternalAgent(agent?.name)) return if (output.options.effort !== undefined) return - if (isEffortUnsupportedModel(model.modelID)) return const opus = isOpusModel(model.modelID) const clamped = clampVariant(message.variant, opus)