litellm/tests/unit/llms/perplexity
Mateo Wang 113b316783
fix(perplexity): let Perplexity's own agent models take chat tools (#55310)
* fix(perplexity): let Perplexity's own agent models take chat tools

Agent API models whose ids repeat the provider prefix, such as perplexity/perplexity/glm-5.3, lost tools,
tool_choice, parallel_tool_calls, reasoning_effort and web_search_options on /v1/chat/completions because the
capability lookups stripped the prefix a second time and missed the row routing had matched. The supported-params
check now hands those lookups the id routing resolved, so an explicit supports_function_calling false still wins
and Sonar stays tools-off

* refactor(perplexity): read the routed row without catching every exception

Ask the catalog lookup routing uses which row matched instead of wrapping get_model_info in a broad except, and cover an unmapped doubled-prefix id.
2026-12-02 17:17:34 -08:00
..
chat fix(perplexity): let Perplexity's own agent models take chat tools (#55310) 2026-12-02 17:17:34 -08:00
embedding fix(cost): bill Perplexity embeddings at the cost Perplexity reports (#53125) 2026-11-20 18:27:27 +00:00
responses fix(perplexity): accept function tools on chat completions for Agent API models (#53952) 2026-11-23 19:01:33 -08: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