Skip to content

Commit d683172

Browse files
committed
fix(chat): label simple effort options with the effort they send
The simple Chat effort picker labeled medium as Low, high as Medium, and xhigh as High. Derive its options from MOTHERSHIP_EFFORT_OPTIONS so each label names the effort it sends: Medium, High, Extra High. Values, the default (high), and the stored preference are unchanged.
1 parent 1056845 commit d683172

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

‎apps/sim/lib/mothership/model-options.ts‎

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -17,12 +17,12 @@ export const MOTHERSHIP_MODEL_OPTIONS = [
1717
{ value: 'claude-opus-5-5', label: 'Opus 5.5' },
1818
] satisfies Array<{ value: ModelSelection['model']; label: string }>
1919

20-
/** Labels deliberately describe the simplified product dial; values are provider efforts. */
21-
export const MOTHERSHIP_SIMPLE_EFFORT_OPTIONS: Array<{ value: MothershipEffort; label: string }> = [
22-
{ value: 'medium', label: 'Low' },
23-
{ value: 'high', label: 'Medium' },
24-
{ value: 'xhigh', label: 'High' },
25-
]
20+
const SIMPLE_EFFORT_VALUES: ReadonlySet<MothershipEffort> = new Set(['medium', 'high', 'xhigh'])
21+
22+
/** The efforts the simple picker offers, labeled with the effort each one sends. */
23+
export const MOTHERSHIP_SIMPLE_EFFORT_OPTIONS = MOTHERSHIP_EFFORT_OPTIONS.filter((option) =>
24+
SIMPLE_EFFORT_VALUES.has(option.value)
25+
)
2626

2727
export function mothershipEffortOptions(model: ModelSelection['model']) {
2828
return model === 'gpt-6-sol'

0 commit comments

Comments
 (0)