litellm/tests/unit/llms/perplexity
Kerry Lu 19d8e57485
fix(perplexity): bill cached prompt tokens at the cache read rate when the response has no cost (#51669)
* fix(perplexity): bill cached prompt tokens at the cache read rate when the response has no cost

* fix(perplexity): bill cached tokens at the off-peak cache read rate when the model has no standard one

Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>

---------

Co-authored-by: devin-ai-integration[bot] <158243242+devin-ai-integration[bot]@users.noreply.github.com>
2026-11-16 03:30:13 +08:00
..
chat fix(openai): send chat completions through client.post so the SDK's per-message param transform stops holding the event loop (#46967) 2026-10-16 18:06:01 -07:00
embedding fix(llms): sanitize trailing slashes in provider get_complete_url (#42887) 2026-10-15 02:59:46 -07:00
responses fix(responses): drop the null created_by OpenAI rejects when output items are replayed (#48783) 2026-10-28 21:11:49 -07:00
search fix(search): forward Perplexity search filters (#49344) 2026-10-30 17:08:32 -07:00
__init__.py test: add __init__.py to intermediate phase 12 unit test directories 2026-09-20 12:37:21 +00:00
test_perplexity.py test: migrate local_testing SDK and provider tests out of build_and_test (#45760) 2026-10-10 23:14:25 +00:00
test_perplexity_cost_calculator.py fix(perplexity): bill cached prompt tokens at the cache read rate when the response has no cost (#51669) 2026-11-16 03:30:13 +08:00
test_perplexity_integration.py test: move tests/test_litellm/llms into tests/unit/llms (#43191) 2026-09-25 12:43:23 -07:00