(contextTokens: number | undefined)
| 80 | * is the smaller class, because guessing upwards would overrun a real context. |
| 81 | */ |
| 82 | export 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. */ |
| 87 | export const CHARS_PER_TOKEN = 4; |
no outgoing calls
no test coverage detected