mirror of
https://github.com/wu736139669/hapi.git
synced 2026-08-05 06:24:37 +00:00
* 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
15 lines
497 B
TypeScript
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'
|
|
}
|