mirror of
https://github.com/BerriAI/litellm.git
synced 2026-11-30 01:08:33 +00:00
* fix(responses): replay cold-stored input calls under the names the provider was sent * fix(responses): keep guardrail edits to MCP servers sharing a label and show guardrails full tool names A guardrail that edited one of two MCP servers sharing a server_label and dropped the other made the request fail, because the merge could not tell which server the edit came from. An MCP server's chat form is the server itself, so the edit is sent as returned. The guardrail messages view for /v1/responses now names namespaced calls by their full name, not the 64-character provider name, so request guardrails see the same names the tool policy checks. * fix(responses): keep a guardrail's tool edit in its own slot and replay self-named members under their sent name * fix(responses): place a guardrail's tied tool edit by the order it came back in When a guardrail edits one of two same-named tools and drops the other, and the edit is as close to both as either is to the other, it now takes the slot that keeps its order around the uniquely named tools the guardrail returned, instead of always the first slot * fix(responses): replay cold-stored calls under sent names when prompts are not stored * fix(responses): keep a guardrail's order for same-named tools when it drops one * fix(responses): bound same-named tool matching so a guardrail edit cannot stall the event loop * fix(responses): keep content matching for small same-named groups when a large group passes the budget * fix(responses): keep main's content matching for same-named groups past the scoring budget A same-named group too large for nearest-match scoring now pairs kept tools with originals in order within each content match, as main does, instead of falling back to position across namespaces --------- Co-authored-by: mateo-berri <277851410+mateo-berri@users.noreply.github.com> |
||
|---|---|---|
| .. | ||
| 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 | ||