mirror of
https://github.com/tiennm99/litellm.git
synced 2026-08-03 10:23:28 +00:00
Remove the isinstance(cost, dict) guard from Usage.__init__ — ResponseAPIUsage.parse_cost validator already converts Perplexity's cost dict to float before it reaches Usage. Add test_streaming_cost_dict_to_float_via_validator to verify the dict→float conversion works end-to-end through transform_streaming_response (pydantic recursive construction).
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.