mirror of
https://github.com/BerriAI/litellm.git
synced 2026-11-25 22:20:43 +00:00
* test(responses): cover bridged system prompts too long for instructions Black-box wire tests for chat completions and /v1/messages on a Responses bridged OpenAI model. A system prompt over the instructions length limit must reach the upstream in input on truncation auto and on a follow-up whose stored chain lacks it, while short prompts and prompts the chain already holds keep today's shape * fix(responses): send bridged system prompts too long for instructions as input OpenAI and Azure reject an instructions string over 1,048,576 code points. The chat completions and /v1/messages bridges still sent long system prompts there on truncation auto and on follow-ups whose stored chain did not hold the prompt, so those requests failed with a 400. After the stored chain check, instructions over the limit now go out as a leading system input item, and a truncation auto follow-up skips a prompt its stored chain already holds instead of sending it again * fix(responses): keep a long system prompt when the caller overrides input in extra_body A caller's extra_body input replaced the input that carried the moved system prompt, so the prompt was dropped. The moved prompt now goes into whichever input the request sends * ci(unit): run the new instructions length tests in the responses shard |
||
|---|---|---|
| .. | ||
| litellm_completion_transformation | ||
| mcp | ||
| __init__.py | ||
| test_additional_tools.py | ||
| test_custom_tool_call.py | ||
| test_input_items_query.py | ||
| test_instructions_length.py | ||
| test_metadata_codex_callback.py | ||
| test_no_duplicate_spend_logs.py | ||
| test_null_test_fix.py | ||
| test_responses_api_bridge_flag.py | ||
| test_responses_api_lifecycle.py | ||
| test_responses_api_request_body.py | ||
| test_responses_prompt_management.py | ||
| test_responses_router_cooldown.py | ||
| test_responses_streaming_iterator.py | ||
| test_responses_supported_endpoints_passthrough.py | ||
| test_responses_utils.py | ||
| test_responses_websocket_all_providers.py | ||
| test_rust_bridge_websocket.py | ||
| test_sse_output_recovery.py | ||
| test_streaming_iterator.py | ||
| test_streaming_iterator_error_events.py | ||
| test_text_format_conversion.py | ||