litellm/tests/unit/llms/chatgpt/responses
kenneth-berri 7ad6950be7
fix(chatgpt): preserve parallel_tool_calls and enforce Codex Responses-Lite contract (#52731)
* fix(chatgpt): preserve parallel_tool_calls and enforce Codex Responses-Lite contract

* test(chatgpt): cover the non-Lite header scan fallthrough

* fix(chatgpt): keep the Responses-Lite change inside the type gate

The lite branch read untyped dicts and returned a new dict, which added three basedpyright unknown-type errors over main. It now validates the headers and request into typed dicts and updates the filtered request in place. Behavior is unchanged.

* fix(chatgpt): return a read-only mapping from the Responses-Lite reasoning helper

* refactor(chatgpt): build the Responses request without mutation and type the Lite tests

---------

Co-authored-by: Bryan Li <bryan.li@gmail.com>
2026-11-18 17:59:31 -08: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_chatgpt_responses_transformation.py fix(chatgpt): preserve parallel_tool_calls and enforce Codex Responses-Lite contract (#52731) 2026-11-18 17:59:31 -08:00