litellm/litellm/completion_extras
tavren27 d545c7eab9
fix(responses): keep access_programs on chat completions on OpenAI SDK 3 (#51814)
* fix(responses): keep access_programs on chat completions on OpenAI SDK 3

The Responses-to-chat bridge hid every field the installed SDK's Response
declared, so SDK 3 dropped access_programs, prompt_cache_options, and
prompt_cache_diagnostics and let metadata through on streams. A fixed list
gives the same output on SDK 2 and SDK 3.

* refactor(responses): name the hidden Responses fields for what they hold

---------

Co-authored-by: mateo-berri <277851410+mateo-berri@users.noreply.github.com>
2026-11-24 12:17:54 -08:00
..
litellm_responses_transformation fix(responses): keep access_programs on chat completions on OpenAI SDK 3 (#51814) 2026-11-24 12:17:54 -08:00
__init__.py Add bridge for /chat/completion -> /responses API (#11632) 2025-06-11 22:20:18 -07:00
README.md Add bridge for /chat/completion -> /responses API (#11632) 2025-06-11 22:20:18 -07:00

Logic specific for litellm.completion.

Includes:

  • Bridge for transforming completion requests to responses api requests