mirror of
https://github.com/claude-code-best/claude-code.git
synced 2026-06-15 12:55:51 +00:00
docs: effort 级别描述去掉模型名限制
This commit is contained in:
@@ -155,7 +155,7 @@ export async function call(onDone: LocalJSXCommandOnDone, _context: unknown, arg
|
|||||||
|
|
||||||
if (COMMON_HELP_ARGS.includes(args)) {
|
if (COMMON_HELP_ARGS.includes(args)) {
|
||||||
onDone(
|
onDone(
|
||||||
'Usage: /effort [low|medium|high|xhigh|max|auto]\n\nEffort levels:\n- low: Quick, straightforward implementation\n- medium: Balanced approach with standard testing\n- high: Comprehensive implementation with extensive testing\n- xhigh: Extra high reasoning for supported models, including ChatGPT Codex models\n- max: Maximum capability with deepest reasoning where supported (Opus 4.6/4.7, DeepSeek V4 Pro); maps to xhigh for ChatGPT Codex models\n- auto: Use the default effort level for your model',
|
'Usage: /effort [low|medium|high|xhigh|max|auto]\n\nEffort levels:\n- low: Quick, straightforward implementation\n- medium: Balanced approach with standard testing\n- high: Comprehensive implementation with extensive testing\n- xhigh: Extended reasoning beyond high, short of max; including ChatGPT Codex models\n- max: Maximum capability with deepest reasoning; maps to xhigh for ChatGPT Codex models\n- auto: Use the default effort level for your model',
|
||||||
);
|
);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -224,6 +224,22 @@ describe('getEffortLevelDescription', () => {
|
|||||||
const desc = getEffortLevelDescription('max')
|
const desc = getEffortLevelDescription('max')
|
||||||
expect(desc).toContain('Maximum')
|
expect(desc).toContain('Maximum')
|
||||||
})
|
})
|
||||||
|
|
||||||
|
test('max description does not contain model names', () => {
|
||||||
|
const desc = getEffortLevelDescription('max')
|
||||||
|
expect(desc).not.toContain('Opus')
|
||||||
|
expect(desc).not.toContain('DeepSeek')
|
||||||
|
})
|
||||||
|
|
||||||
|
test("returns description for 'xhigh'", () => {
|
||||||
|
const desc = getEffortLevelDescription('xhigh')
|
||||||
|
expect(desc).toContain('Extended reasoning')
|
||||||
|
})
|
||||||
|
|
||||||
|
test('xhigh description does not contain model names', () => {
|
||||||
|
const desc = getEffortLevelDescription('xhigh')
|
||||||
|
expect(desc).not.toContain('Opus')
|
||||||
|
})
|
||||||
})
|
})
|
||||||
|
|
||||||
// ─── resolvePickerEffortPersistence ────────────────────────────────────
|
// ─── resolvePickerEffortPersistence ────────────────────────────────────
|
||||||
|
|||||||
@@ -262,9 +262,9 @@ export function getEffortLevelDescription(level: EffortLevel): string {
|
|||||||
case 'high':
|
case 'high':
|
||||||
return 'Comprehensive implementation with extensive testing and documentation'
|
return 'Comprehensive implementation with extensive testing and documentation'
|
||||||
case 'xhigh':
|
case 'xhigh':
|
||||||
return 'Extended reasoning beyond high, short of max (Opus 4.7 only)'
|
return 'Extended reasoning beyond high, short of max'
|
||||||
case 'max':
|
case 'max':
|
||||||
return 'Maximum capability with deepest reasoning (Opus 4.6/4.7/DeepSeek V4 Pro)'
|
return 'Maximum capability with deepest reasoning'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user