mirror of
https://github.com/BerriAI/litellm.git
synced 2026-09-10 22:41:41 +00:00
* fix(responses): decode JSON-string tool schemas before sending to the provider A caller that hands a tool schema over already JSON-encoded reached the Responses API with a string `parameters`, and the provider rejected the request with a 400 naming the routed model instead of the offending tool. Decode it at the one place every Responses request converges, and refuse anything that is neither an object nor a string encoding one. Collapses the duplicated input/tool sanitization block shared by the request and compact-request builders into a single owner, so the decode cannot be wired into one path and not the other. * test(responses): pin null tool schemas as accepted, and type the parametrized cases The Responses API serves `parameters: null` and an omitted schema alike, so neither may raise. Pin both against a future tightening, annotate the parametrized inputs, and trim the docstrings back to what the code does not already say. |
||
|---|---|---|
| .. | ||
| test_openai_count_tokens_transformation.py | ||
| test_openai_responses_data_residency.py | ||
| test_openai_responses_guardrail_handler.py | ||
| test_openai_responses_guardrail_tool_merge.py | ||
| test_openai_responses_transformation.py | ||