(text: string)
| 16 | * @returns The number of tokens |
| 17 | */ |
| 18 | export function countTextTokens(text: string): number { |
| 19 | return encoder.encode(text).length |
| 20 | } |
| 21 | |
| 22 | /** |
| 23 | * Get token counts for the system prompts |
no outgoing calls
no test coverage detected