mirror of
https://github.com/BerriAI/litellm.git
synced 2026-12-05 01:59:27 +00:00
* 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. |
||
|---|---|---|
| .. | ||
| __init__.py | ||
| test_perplexity_chat_transformation.py | ||
| test_transformation.py | ||