mirror of
https://github.com/BerriAI/litellm.git
synced 2026-11-28 00:00:38 +00:00
A Responses API request replayed through the chat completions bridge turns a reasoning item with no following answer into an assistant message that carries only reasoning. The None-field cleanup then drops its content key, and strict OpenAI-compatible servers such as llama.cpp answer 400 with "Assistant message must contain either 'content' or 'tool_calls'!". The same happens when a chat completions client replays a reasoning-only assistant turn. The OpenAI chat request builder now sends content "" on an assistant message that has reasoning but no content, tool calls or function call. The bridge keeps content None, so the reasoning merge pass and the Anthropic, Gemini and Bedrock converters see the same messages as before. Fixes #54504 |
||
|---|---|---|
| .. | ||
| 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 | ||