MCPcopy Index your code
hub / github.com/claude-code-best/claude-code / getDefaultOptionForUser

Function getDefaultOptionForUser

src/utils/model/modelOptions.ts:51–80  ·  view source on GitHub ↗
(fastMode = false)

Source from the content-addressed store, hash-verified

49}
50
51export function getDefaultOptionForUser(fastMode = false): ModelOption {
52 if (process.env.USER_TYPE === 'ant') {
53 const currentModel = renderDefaultModelSetting(
54 getDefaultMainLoopModelSetting(),
55 )
56 return {
57 value: null,
58 label: 'Default (recommended)',
59 description: `Use the default model for Ants (currently ${currentModel})`,
60 descriptionForModel: `Default model (currently ${currentModel})`,
61 }
62 }
63
64 // Subscribers
65 if (isClaudeAISubscriber()) {
66 return {
67 value: null,
68 label: 'Default (recommended)',
69 description: getClaudeAiUserDefaultModelDescription(fastMode),
70 }
71 }
72
73 // PAYG
74 const is3P = getAPIProvider() !== 'firstParty'
75 return {
76 value: null,
77 label: 'Default (recommended)',
78 description: `Use the default model (currently ${renderDefaultModelSetting(getDefaultMainLoopModelSetting())})${is3P ? '' : ` · ${formatModelPricing(COST_TIER_3_15)}`}`,
79 }
80}
81
82function getCustomSonnetOption(): ModelOption | undefined {
83 const is3P = getAPIProvider() !== 'firstParty'

Callers 1

getModelOptionsBaseFunction · 0.85

Calls 6

getAPIProviderFunction · 0.85
isClaudeAISubscriberFunction · 0.50
formatModelPricingFunction · 0.50

Tested by

no test coverage detected