feat: 默认 Opus 模型从 4.8 升级到 Opus 5 - #275
Conversation
- config.ts: CLAUDE_MODEL 默认值 claude-opus-4-8 → claude-opus-5 - executor.ts: MODEL_PRICING 新增 claude-opus-5 条目($5/$25 per MTok, 与 Opus 4.8 同价),保留 4.8 条目以兼容 resume 的历史会话成本计算 Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
|
Claude finished @lishuceo's task in 2m 36s —— View job Code Review — feat: 默认 Opus 模型从 4.8 升级到 Opus 5
✅ ApprovedNo blocking issues. 3-line constant change, correct in both files, and I couldn't find anything it breaks. What I verified:
Optional (non-blocking) follow-ups:
Verification I could not run: One thing worth confirming outside my reach: I have no network access in this run, so I could not check --- • Branch: |
背景
将 anycode 的默认 Opus 模型从
claude-opus-4-8升级到claude-opus-5(2026-05 GA,$5/$25 per MTok,1M 上下文,同价位替换)。改动
src/config.ts—CLAUDE_MODEL默认值claude-opus-4-8→claude-opus-5(仅在 agent 未显式指定模型时作为兜底)src/claude/executor.ts—MODEL_PRICING新增claude-opus-5定价条目(input 5 / output 25 / cacheWrite 6.25 / cacheRead 0.50,与 Opus 4.8 一致);保留claude-opus-4-8条目,确保 resume 历史会话的成本计算仍准确测试
npm run typecheck✅npx vitest run:1776 passed,唯一失败项memory/quality.test.ts > 当前工作重点为向量检索质量的既有 flaky 项(已验证在未含本改动的干净基线上同样失败),与本次改动无关🤖 Generated with Claude Code