/** * The thread that does the counting. See token-accounting.ts for why this is a * thread at all: tokenizing is 0.33ms/KB, and a proxy that blocked its event * loop for 165ms per request to measure its own savings would be slower for * having measured them. * * NOTHING IS WRITTEN, LOGGED OR RETAINED HERE. Two bodies arrive, two integers * go back. The counter's own cache is bounded at 512 entries / 8MB with FIFO * eviction (see TokenCounter), which is what makes a resident instance safe in * a long-lived thread fed a stream of distinct conversations. */ export {}; //# sourceMappingURL=token-accounting-worker.d.ts.map