mirror of
https://github.com/BerriAI/litellm.git
synced 2026-09-08 22:21:35 +00:00
refactor(ui): document the fallback effort set and drop the dead ReasoningEffort export
This commit is contained in:
parent
a5f0e228b5
commit
9c23011089
1 changed files with 5 additions and 1 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue