- Introduced `Max` as a first-class reasoning effort tier across all packages, including AI providers, coding agent configurations, and RPC protocols. - Refactored model effort ladders to use wire-exact mappings and removed legacy effort aliasing (e.g., `max-to-xhigh` mapping). - Updated model registry and provider configurations to support `Max` tier routing, color themes, and UI icon associations. - Expanded test suites to provide end-to-end coverage for the new reasoning tier, including updated compatibility and fallback scenarios.
21 lines
525 B
TypeScript
21 lines
525 B
TypeScript
import { Effort } from "@oh-my-pi/pi-ai";
|
|
|
|
/**
|
|
* Agent-local thinking selector.
|
|
*
|
|
* `off` disables reasoning, while `inherit` defers to a higher-level selector.
|
|
*/
|
|
export const ThinkingLevel = {
|
|
Inherit: "inherit",
|
|
Off: "off",
|
|
Minimal: Effort.Minimal,
|
|
Low: Effort.Low,
|
|
Medium: Effort.Medium,
|
|
High: Effort.High,
|
|
XHigh: Effort.XHigh,
|
|
Max: Effort.Max,
|
|
} as const;
|
|
|
|
export type ThinkingLevel = (typeof ThinkingLevel)[keyof typeof ThinkingLevel];
|
|
export type ResolvedThinkingLevel = Exclude<ThinkingLevel, "inherit">;
|