MCPcopy Create free account
hub / github.com/Noumena-Network/code / getCustomHaikuOption

Function getCustomHaikuOption

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

Source from the content-addressed store, hash-verified

217}
218
219function getCustomHaikuOption(): ModelOption | undefined {
220 const is3P = getAPIProvider() !== 'firstParty'
221 const customHaikuModel = process.env.ANTHROPIC_DEFAULT_HAIKU_MODEL
222 // When a 3P user has a custom haiku model string, show it directly
223 if (is3P && customHaikuModel) {
224 return {
225 value: 'haiku',
226 label: process.env.ANTHROPIC_DEFAULT_HAIKU_MODEL_NAME ?? customHaikuModel,
227 description:
228 process.env.ANTHROPIC_DEFAULT_HAIKU_MODEL_DESCRIPTION ??
229 'Custom fast model',
230 descriptionForModel: `${process.env.ANTHROPIC_DEFAULT_HAIKU_MODEL_DESCRIPTION ?? 'Custom fast model'} (${customHaikuModel})`,
231 }
232 }
233}
234
235function getHaiku45Option(): ModelOption {
236 const is3P = getAPIProvider() !== 'firstParty'

Callers 1

getModelOptionsBaseFunction · 0.85

Calls 1

getAPIProviderFunction · 0.85

Tested by

no test coverage detected