mirror of
https://github.com/BerriAI/litellm.git
synced 2026-11-08 08:08:37 +00:00
Perplexity, OpenRouter pass-through, and Responses streaming now treat a NaN or infinite reported cost as unreported, so the token price bills the request. A daily spend batch parked in the Redis buffer by an older version with a NaN spend now drains as 0 instead of failing every flush. The cost header never carries NaN or Infinity, and a set holding a non-finite float no longer breaks spend log JSON |
||
|---|---|---|
| .. | ||
| chat | ||
| embedding | ||
| responses | ||
| search | ||
| __init__.py | ||
| test_perplexity.py | ||
| test_perplexity_cost_calculator.py | ||
| test_perplexity_integration.py | ||