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

Function getDefaultOptionForUser

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

Source from the content-addressed store, hash-verified

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

Callers 1

getModelOptionsBaseFunction · 0.85

Calls 6

getAPIProviderFunction · 0.85
formatModelPricingFunction · 0.85
isClaudeAISubscriberFunction · 0.50

Tested by

no test coverage detected