MCPcopy Create free account
hub / github.com/codeaashu/claude-code / getCustomHaikuOption

Function getCustomHaikuOption

src/utils/model/modelOptions.ts:165–179  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

163}
164
165function getCustomHaikuOption(): ModelOption | undefined {
166 const is3P = getAPIProvider() !== 'firstParty'
167 const customHaikuModel = process.env.ANTHROPIC_DEFAULT_HAIKU_MODEL
168 // When a 3P user has a custom haiku model string, show it directly
169 if (is3P && customHaikuModel) {
170 return {
171 value: 'haiku',
172 label: process.env.ANTHROPIC_DEFAULT_HAIKU_MODEL_NAME ?? customHaikuModel,
173 description:
174 process.env.ANTHROPIC_DEFAULT_HAIKU_MODEL_DESCRIPTION ??
175 'Custom Haiku model',
176 descriptionForModel: `${process.env.ANTHROPIC_DEFAULT_HAIKU_MODEL_DESCRIPTION ?? 'Custom Haiku model'} (${customHaikuModel})`,
177 }
178 }
179}
180
181function getHaiku45Option(): ModelOption {
182 const is3P = getAPIProvider() !== 'firstParty'

Callers 1

getModelOptionsBaseFunction · 0.85

Calls 1

getAPIProviderFunction · 0.85

Tested by

no test coverage detected