litellm/tests/unit/llms/anthropic/messages
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
..
adapters refactor(proxy): keep the detached stream failure hook state on the logging object (#51962) 2026-11-16 02:16:05 -05:00
context_management perf(token_counter): memoize token counts of long texts per tokenizer (#51904) 2026-11-16 19:21:55 +00:00
native refactor(proxy): keep the detached stream failure hook state on the logging object (#51962) 2026-11-16 02:16:05 -05:00
responses_adapters refactor(proxy): keep the detached stream failure hook state on the logging object (#51962) 2026-11-16 02:16:05 -05:00
__init__.py
conftest.py feat(redis): serve the proxy's common Redis call with Rust stores (#50170) 2026-11-06 06:01:11 +00:00
test_advisor_orchestration.py refactor(router): delete the python router core, the rust core is the only core (#50178) 2026-11-05 10:40:46 -08:00
test_anthropic_native_passthrough_spend_logging.py refactor(anthropic): rename llms/anthropic/pass_through to llms/anthropic/messages (#48510) 2026-10-27 10:08:25 -07:00
test_caller_model_checks.py feat(redis): serve the proxy's common Redis call with Rust stores (#50170) 2026-11-06 06:01:11 +00:00
test_convertible_blocks.py refactor(anthropic): rename llms/anthropic/pass_through to llms/anthropic/messages (#48510) 2026-10-27 10:08:25 -07:00
test_reasoning_effort_fields.py refactor(router): route the router family through RoutingContext and close the outside surface (#49118) 2026-10-30 19:18:54 -07:00
test_safeguards.py refactor(router): move router callers onto the entry points and invert the proxy imports (#48847) 2026-10-29 17:26:33 +00:00
test_stream_assembly.py refactor(typing): clear about 1,100 basedpyright Any errors across 303 files (#49986) 2026-11-06 13:31:15 -08:00