refactor(ui): document the fallback effort set and drop the dead ReasoningEffort export

This commit is contained in:
Tin Chi Lo 2026-08-20 16:00:26 -07:00
parent a5f0e228b5
commit 9c23011089

View file

@ -5,8 +5,12 @@ export type TierModelParams = Record<string, unknown>;
export type TierModelParamsByTier = Record<string, Record<string, TierModelParams>>;
/**
* Fallback offered only when a proxy does not report supported_reasoning_efforts per model group.
* max is deliberately absent: it is opt-in per model in the model map, so a capability-blind list
* must not offer it; a proxy that reports capabilities supplies max itself where supported.
*/
export const REASONING_EFFORT_OPTIONS = ["none", "minimal", "low", "medium", "high", "xhigh"] as const;
export type ReasoningEffort = (typeof REASONING_EFFORT_OPTIONS)[number];
const asRecord = (raw: unknown): Record<string, unknown> | undefined =>
typeof raw === "object" && raw !== null && !Array.isArray(raw) ? (raw as Record<string, unknown>) : undefined;