litellm/tests/unit/integrations/compression_interception
Nate Armstrong c60a320b05
perf(token_counter): memoize token counts of long texts per tokenizer (#51904)
* perf(token_counter): memoize token counts of long texts per tokenizer

* test(prompt_caching): count a prompt no other test has counted in the loop lag checks

* fix(token_counter): key the count memo on the string hash instead of blake2b

* test(router): embed distinct texts so the batches are counted in full

* test: time token counts over text no earlier count has memoized
2026-11-16 19:21:55 +00:00
..
__init__.py test: add __init__.py to migrated tests/unit packages 2026-09-20 11:53:49 +00:00
test_compression_interception_handler.py perf(token_counter): memoize token counts of long texts per tokenizer (#51904) 2026-11-16 19:21:55 +00:00