litellm/tests/unit/llms/openai/chat
mateo-berri 27740a97aa fix(tool_choice): accept both allowed_tools shapes and gate unsupported providers
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.
2026-10-28 06:55:05 -07:00
..
guardrail_translation fix(tool_choice): accept both allowed_tools shapes and gate unsupported providers 2026-10-28 06:55:05 -07:00
__init__.py test(unit): make every tests/unit directory a package so pytest collection is unique 2026-09-20 11:50:59 +00:00
test_openai_gpt_transformation.py fix: preserve media across Responses and Gemini conversions (#48484) 2026-10-27 18:07:10 -07:00