litellm/litellm/completion_extras
mrinal-berri 9703e01cd4
fix(responses): keep the system prompt in input for json_object on the chat to responses bridge (#49957)
The bridge moves leading system messages into the Responses instructions
field. With response_format json_object, Azure requires the word json in
input and ignores instructions, so a request that follows the documented
rule 400s after translation. Send the system text as a system input item
when json_object is requested, the same shape already used for
system-only requests

Resolves LIT-10426
2026-11-04 13:55:50 -08:00
..
litellm_responses_transformation fix(responses): keep the system prompt in input for json_object on the chat to responses bridge (#49957) 2026-11-04 13:55:50 -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