MCPcopy Create free account
hub / github.com/DeusData/codebase-memory-mcp / modelClassOf

Function modelClassOf

graph-ui/src/compiler/card-compiler.ts:82–84  ·  view source on GitHub ↗
(contextTokens: number | undefined)

Source from the content-addressed store, hash-verified

80 * is the smaller class, because guessing upwards would overrun a real context.
81 */
82export function modelClassOf(contextTokens: number | undefined): ModelClass {
83 return contextTokens !== undefined && contextTokens >= CARD_BUDGET_CLASS_B ? 'B' : 'A';
84}
85
86/** Characters per token. A documented heuristic; see the file header. */
87export const CHARS_PER_TOKEN = 4;

Callers 2

ProjectWindowViewFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected