Files
hapi/shared/src/piThinkingLevel.ts
T
KorenKritaandGitHub 3290bc9ca9 feat(pi): add 'max' thinking level (#1032)
* feat(pi): add 'max' thinking level

Pi's --thinking flag accepts 7 levels: off, minimal, low, medium, high,
xhigh, max. The shared constant and UI only exposed 6 levels (missing max).

Add 'max' to PI_THINKING_LEVELS and PI_THINKING_LEVEL_LABELS. Like xhigh,
max requires explicit opt-in via the model's thinkingLevelMap — models that
support it will include max in their map and the UI will show it
accordingly.

* fix(pi): close max thinking-level branch
2026-07-16 12:30:55 +08:00

15 lines
497 B
TypeScript

// Pi thinking levels (from Pi's rpc-types.ts ThinkingLevel)
// Controls how much reasoning/thinking the model performs.
export const PI_THINKING_LEVELS = ['off', 'minimal', 'low', 'medium', 'high', 'xhigh', 'max'] as const
export type PiThinkingLevel = typeof PI_THINKING_LEVELS[number]
export const PI_THINKING_LEVEL_LABELS: Record<PiThinkingLevel, string> = {
off: 'Off',
minimal: 'Minimal',
low: 'Low',
medium: 'Medium',
high: 'High',
xhigh: 'XHigh',
max: 'Max'
}