mirror of
https://github.com/BerriAI/litellm.git
synced 2026-12-01 01:18:34 +00:00
Validate the chat and Responses allowed_tools shapes with pydantic models, send the nested shape to chat completions and the flat shape through the Responses bridge, and answer 400 (or drop under drop_params) on providers that cannot take it. Guardrails that remove tools now prune them from an allowed_tools choice instead of deleting fields in place, and an empty tools list is rejected. |
||
|---|---|---|
| .. | ||
| guardrail_translation | ||
| __init__.py | ||
| test_openai_gpt_transformation.py | ||