MCPcopy
hub / github.com/claude-code-best/claude-code / resolveOptionModel

Function resolveOptionModel

src/components/ModelPicker.tsx:338–341  ·  view source on GitHub ↗
(value?: string)

Source from the content-addressed store, hash-verified

336}
337
338function resolveOptionModel(value?: string): string | undefined {
339 if (!value) return undefined;
340 return value === NO_PREFERENCE ? getDefaultMainLoopModel() : parseUserSpecifiedModel(value);
341}
342
343function EffortLevelIndicator({ effort }: { effort?: EffortLevel }): React.ReactNode {
344 return <Text color={effort ? 'claude' : 'subtle'}>{effortLevelToSymbol(effort ?? 'low')}</Text>;

Callers 3

ModelPickerFunction · 0.85
handleSelectFunction · 0.85

Calls 2

getDefaultMainLoopModelFunction · 0.85
parseUserSpecifiedModelFunction · 0.85

Tested by

no test coverage detected