litellm/tests/unit/integrations/compression_interception
mateo-berri b51f033a61 fix(tool-choice): resolve mcp entries like the gateway and keep the choice on every hook path
Backport of #50467 to lts/1.108.x.
Cherry-picked from 6be4f0b9ea (litellm_allowed_tools_flat_tool_choice). Resolved: the line has no tool_precheck.py or agentic_loop_refusal.py, so the MCP label resolver lives in litellm_proxy_mcp_handler.py and mirrors the line's own toolset resolution (admin view and granted toolsets, no access-group fallback), and the line's toolset listing now calls the same resolver. A chat hook turn holding a call the choice excludes answers 400 through the line's AgenticLoopSafetyError path. Main-only code in the conflicted hunks (internal_sub_call, first-round billing, Claude Code web search prefix) is left out. Test hunks that need main-only fixtures move to the line test commit.
2026-11-07 02:05:04 -08:00
..
__init__.py test: add __init__.py to migrated tests/unit packages 2026-09-20 11:53:49 +00:00
test_compression_interception_handler.py fix(tool-choice): resolve mcp entries like the gateway and keep the choice on every hook path 2026-11-07 02:05:04 -08:00