mirror of
https://github.com/BerriAI/litellm.git
synced 2026-11-30 01:08:33 +00:00
* fix(responses): one shared lookup for bridged tool names, read on resumed turns and by tool permission The Responses-to-chat bridge sends a long namespace tool under a shortened name. The lookup from that name back to the caller's namespace and tool now also learns names from earlier namespaced calls in the history, so a resumed Codex session whose MCP tools are not listed yet gets the real tool back instead of an unknown call. The bridge records that one lookup on the request's logging object, and the tool permission guardrail reads the same record, so a rule written against the full name also applies to the shortened name the provider was sent. A client cannot set the record from its own request body. * fix(responses): judge a bridged tool call as the tool the caller gets back The tool permission guardrail read a filtered copy of the bridge's name lookup, so a namespace tool that was not shortened, or a custom tool sharing a shortened name from history, was judged under a different name than the one the caller received. The lookup now leaves out custom tool names, the bridge records all of it, and only logs keep renaming just the shortened names. * fix(responses): one tagged tool answer for the reply, tool permission and spend logs A deferred top-level tool was recorded as if it were a member of a namespace with its own name, so tool permission judged it as name__name and a namespace allow rule could let it through. Each bridged name now maps to either a namespace member or a deferred top-level tool, and the reply, tool permission and spend logs all read that same answer without filtering it. |
||
|---|---|---|
| .. | ||
| 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 | ||