mirror of
https://github.com/tiennm99/ccs.git
synced 2026-09-02 16:19:27 +00:00
fix(ui): surface the max thinking level in settings and help
This commit is contained in:
@@ -572,7 +572,7 @@ export async function execClaudeWithCLIProxy(
|
|||||||
console.error(' Alias: --thinking xhigh (same behavior)');
|
console.error(' Alias: --thinking xhigh (same behavior)');
|
||||||
} else {
|
} else {
|
||||||
console.error(' Examples: --thinking low, --thinking 8192, --thinking off');
|
console.error(' Examples: --thinking low, --thinking 8192, --thinking off');
|
||||||
console.error(' Levels: minimal, low, medium, high, xhigh, auto');
|
console.error(' Levels: minimal, low, medium, high, xhigh, max, auto');
|
||||||
}
|
}
|
||||||
|
|
||||||
process.exit(1);
|
process.exit(1);
|
||||||
|
|||||||
@@ -60,7 +60,7 @@ function showHelp(): void {
|
|||||||
|
|
||||||
console.log(subheader('Levels:'));
|
console.log(subheader('Levels:'));
|
||||||
console.log(
|
console.log(
|
||||||
` ${dim('minimal (512), low (1K), medium (8K), high (24K), xhigh (32K), auto, off')}`
|
` ${dim('minimal (512), low (1K), medium (8K), high (24K), xhigh (32K), max (adaptive ceiling), auto, off')}`
|
||||||
);
|
);
|
||||||
console.log('');
|
console.log('');
|
||||||
|
|
||||||
|
|||||||
@@ -904,7 +904,9 @@ function generateYamlWithComments(config: UnifiedConfig): string {
|
|||||||
lines.push(
|
lines.push(
|
||||||
'# Modes: auto (use tier_defaults), off (disable), manual (--thinking/--effort flags)'
|
'# Modes: auto (use tier_defaults), off (disable), manual (--thinking/--effort flags)'
|
||||||
);
|
);
|
||||||
lines.push('# Levels: minimal (512), low (1K), medium (8K), high (24K), xhigh (32K), auto');
|
lines.push(
|
||||||
|
'# Levels: minimal (512), low (1K), medium (8K), high (24K), xhigh (32K), max (adaptive ceiling), auto'
|
||||||
|
);
|
||||||
lines.push('# Override: Set global override value (number or level name)');
|
lines.push('# Override: Set global override value (number or level name)');
|
||||||
lines.push('# Provider overrides: Per-provider tier defaults');
|
lines.push('# Provider overrides: Per-provider tier defaults');
|
||||||
lines.push('# ----------------------------------------------------------------------------');
|
lines.push('# ----------------------------------------------------------------------------');
|
||||||
|
|||||||
@@ -35,6 +35,7 @@ describe('config thinking override normalization', () => {
|
|||||||
|
|
||||||
it('accepts valid levels', () => {
|
it('accepts valid levels', () => {
|
||||||
expect(parseThinkingOverrideInput('High')).toEqual({ value: 'high' });
|
expect(parseThinkingOverrideInput('High')).toEqual({ value: 'high' });
|
||||||
|
expect(parseThinkingOverrideInput('Max')).toEqual({ value: 'max' });
|
||||||
});
|
});
|
||||||
|
|
||||||
it('validates numeric bounds', () => {
|
it('validates numeric bounds', () => {
|
||||||
|
|||||||
@@ -32,6 +32,7 @@ const THINKING_LEVELS = [
|
|||||||
{ value: 'medium', label: 'Medium (8K tokens)' },
|
{ value: 'medium', label: 'Medium (8K tokens)' },
|
||||||
{ value: 'high', label: 'High (24K tokens)' },
|
{ value: 'high', label: 'High (24K tokens)' },
|
||||||
{ value: 'xhigh', label: 'Extra High (32K tokens)' },
|
{ value: 'xhigh', label: 'Extra High (32K tokens)' },
|
||||||
|
{ value: 'max', label: 'Max (adaptive ceiling)' },
|
||||||
{ value: 'auto', label: 'Auto (dynamic)' },
|
{ value: 'auto', label: 'Auto (dynamic)' },
|
||||||
];
|
];
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user