Skip to content
Merged
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 @@ -28,6 +28,7 @@ import type { ClaudeResult, ExecuteOptions, ProgressCallback, TurnInfo, ToolCall
// 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-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 },
'claude-opus-4-5-20250620': { 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 @@ -68,8 +68,8 @@ export const config = {
apiBaseUrl: process.env.ANTHROPIC_BASE_URL || '',
/** 单步空闲超时 (秒):某步骤长时间无 SDK 消息活动时 abort。不限制总执行时长 */
timeoutSeconds: parseInt(process.env.CLAUDE_TIMEOUT || '300', 10),
/** 模型名称,默认 claude-opus-4-7 (Opus 4.7) */
model: process.env.CLAUDE_MODEL || 'claude-opus-4-7',
/** 模型名称,默认 claude-opus-4-8 (Opus 4.8) */
model: process.env.CLAUDE_MODEL || 'claude-opus-4-8',
/** thinking 模式: 'adaptive' (自适应思考) | 'disabled' */
thinking: (process.env.CLAUDE_THINKING || 'adaptive') as 'adaptive' | 'disabled',
/** effort 等级: 'low' | 'medium' | 'high' | 'max' */
Expand Down
Loading