MCPcopy
hub / github.com/KeygraphHQ/shannon / resolveModel

Function resolveModel

apps/worker/src/ai/models.ts:28–37  ·  view source on GitHub ↗
(tier: ModelTier = 'medium')

Source from the content-addressed store, hash-verified

26
27/** Resolve a model tier to a concrete model ID. */
28export function resolveModel(tier: ModelTier = 'medium'): string {
29 switch (tier) {
30 case 'small':
31 return process.env.ANTHROPIC_SMALL_MODEL || DEFAULT_MODELS.small;
32 case 'large':
33 return process.env.ANTHROPIC_LARGE_MODEL || DEFAULT_MODELS.large;
34 default:
35 return process.env.ANTHROPIC_MEDIUM_MODEL || DEFAULT_MODELS.medium;
36 }
37}
38
39/** Whether a model supports adaptive thinking. Opus 4.6, 4.7, and 4.8 only. */
40export function supportsAdaptiveThinking(model: string): boolean {

Callers 3

writeHeaderMethod · 0.85
runClaudePromptFunction · 0.85
validateCredentialsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected