Skip to content

Commit 4cf25e7

Browse files
lishuceoclaude
andauthored
feat: 默认 effort 档从 max 降到 xhigh (#268)
xhigh 是 SDK 合法档位(low|medium|high|xhigh|max),介于 high 与 max 之间, Opus 4.7+ 支持,不支持时 SDK 静默降到 high,安全。相比 max 降低单步思考深度, 压缩高频小对话的 token 成本。同步在类型联合中补上 xhigh。 Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
1 parent 1bfd967 commit 4cf25e7

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/config.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -87,8 +87,8 @@ export const config = {
8787
model: process.env.CLAUDE_MODEL || 'claude-opus-4-8',
8888
/** thinking 模式: 'adaptive' (自适应思考) | 'disabled' */
8989
thinking: (process.env.CLAUDE_THINKING || 'adaptive') as 'adaptive' | 'disabled',
90-
/** effort 等级: 'low' | 'medium' | 'high' | 'max' */
91-
effort: (process.env.CLAUDE_EFFORT || 'max') as 'low' | 'medium' | 'high' | 'max',
90+
/** effort 等级: 'low' | 'medium' | 'high' | 'xhigh' | 'max'(xhigh: 比 high 更深,Opus 4.7+) */
91+
effort: (process.env.CLAUDE_EFFORT || 'xhigh') as 'low' | 'medium' | 'high' | 'xhigh' | 'max',
9292
/** 单次 query 最大轮次 (Agent ↔ Tool 来回次数),兜底防死循环 */
9393
maxTurns: parseInt(process.env.CLAUDE_MAX_TURNS || '500', 10),
9494
/** 单次 query 最大花费 (美元),真正的费用熔断 */

0 commit comments

Comments
 (0)