litellm/tests/unit/llms/chatgpt
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
..
chat feat(chatgpt): forward client subscriptions through the gateway (#41522) 2026-10-26 15:44:05 -07:00
responses fix(chatgpt): preserve parallel_tool_calls and enforce Codex Responses-Lite contract (#52731) 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_authenticator.py feat(chatgpt): forward client subscriptions through the gateway (#41522) 2026-10-26 15:44:05 -07:00
test_chatgpt_common_utils.py fix(chatgpt): derive the upstream session id from prompt_cache_key (#42014) 2026-10-28 10:57:51 -07:00