Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions src/claude/executor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ import type { ClaudeResult, CompactResult, ExecuteOptions, ProgressCallback, Tur
// Anthropic API 定价(per million tokens)
// https://docs.anthropic.com/en/docs/about-claude/pricing
const MODEL_PRICING: Record<string, { input: number; output: number; cacheWrite: number; cacheRead: number }> = {
'claude-opus-5': { input: 5, output: 25, cacheWrite: 6.25, cacheRead: 0.50 },
'claude-opus-4-8': { input: 5, output: 25, cacheWrite: 6.25, cacheRead: 0.50 },
'claude-opus-4-7': { input: 5, output: 25, cacheWrite: 6.25, cacheRead: 0.50 },
'claude-opus-4-6': { input: 5, output: 25, cacheWrite: 6.25, cacheRead: 0.50 },
Expand Down
4 changes: 2 additions & 2 deletions src/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -103,8 +103,8 @@ export const config = {
* 同时兜底真正挂死的工具(如等待 stdin 的命令)。区别于 timeoutSeconds:工具执行期间不算"空闲"。
*/
toolTimeoutSeconds: parseInt(process.env.CLAUDE_TOOL_TIMEOUT || '900', 10),
/** 模型名称,默认 claude-opus-4-8 (Opus 4.8) */
model: process.env.CLAUDE_MODEL || 'claude-opus-4-8',
/** 模型名称,默认 claude-opus-5 (Opus 5) */
model: process.env.CLAUDE_MODEL || 'claude-opus-5',
/** thinking 模式: 'adaptive' (自适应思考) | 'disabled' */
thinking: (process.env.CLAUDE_THINKING || 'adaptive') as 'adaptive' | 'disabled',
/** effort 等级: 'low' | 'medium' | 'high' | 'xhigh' | 'max'(xhigh: 比 high 更深,Opus 4.7+) */
Expand Down
Loading