mirror of
https://github.com/tiennm99/litellm.git
synced 2026-07-16 18:16:34 +00:00
CallTypes(call_type) was constructing an enum from string on every call, taking ~4.6µs/call (69.6% of function time). Replace with a frozenset membership test for ~0.8µs/call (8.3x faster).
In total litellm runs 1000+ tests
[02/20/2025] Update:
To make it easier to contribute and map what behavior is tested,
we've started mapping the litellm directory in tests/test_litellm
This folder can only run mock tests.