MCPcopy Index your code
hub / github.com/simstudioai/sim / clearEncodingCache

Function clearEncodingCache

apps/sim/lib/tokenization/estimators.ts:178–181  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

176 * Clean up cached encodings (call when shutting down)
177 */
178export function clearEncodingCache(): void {
179 encodingCache.clear()
180 logger.info('Cleared tiktoken encoding cache')
181}
182
183/**
184 * Estimates token count for text using provider-specific heuristics

Callers 1

estimators.tsFile · 0.85

Calls 2

infoMethod · 0.80
clearMethod · 0.65

Tested by

no test coverage detected