litellm/tests/unit/decisions
Bofeng Huang c3cd9ad5b7
fix(decisions): support the litellm_proxy provider (#51611)
* fix(decisions): support the litellm_proxy provider

Decision calls failed with "Unknown Decisions provider 'litellm_proxy'" when
litellm.use_litellm_proxy was on, or with a litellm_proxy/ model, because the
decisions lookup had no config for that provider. Chat, responses and images
already have one. The new config posts the OpenAI decisions format to the
proxy's /v1/decisions, with LITELLM_PROXY_API_BASE and LITELLM_PROXY_API_KEY
as fallbacks and no fallback to OpenAI's base URL or key.

* fix(decisions): honor use_litellm_proxy set per call or per deployment

Pass the per-call use_litellm_proxy flag into provider resolution so a router deployment flagged for the proxy sends Decisions to the proxy with its own key, and pin that litellm_proxy never falls back to OpenAI's base or key.

* fix(decisions): let the proxy judge box questions, audio and videos, and allow a keyless proxy

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

---------

Co-authored-by: mateo-berri <277851410+mateo-berri@users.noreply.github.com>
Co-authored-by: kenneth <kenneth@berri.ai>
Co-authored-by: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
2026-11-19 11:44:40 -08:00
..
__init__.py feat(decisions): add unified /v1/decisions endpoint for Jev-compatible providers (#44236) 2026-10-03 17:38:38 +00:00
test_call.py fix(decisions): forward OpenAI prompt cache fields (#51457) 2026-11-18 03:25:09 +00:00
test_main.py fix(decisions): support the litellm_proxy provider (#51611) 2026-11-19 11:44:40 -08:00