From aa960d620a75f1282e8557754f4954e15e353c10 Mon Sep 17 00:00:00 2001 From: Mrinal Chanshetty Date: Tue, 20 Oct 2026 21:27:07 -0700 Subject: [PATCH] fix(anthropic): carry main's dangerous-tool-use beta map entries; skip worker-kill chaos test The bundled beta map stripped dangerous-tool-use-2026-09-03 for providers main supports it on, so safeguards requests went upstream without the beta whenever the proxy used the bundled map. The worker-SIGKILL chaos test needs OwnedProxy.replacing_worker, which this line's integration harness lacks. Co-Authored-By: Claude Opus 5.5 --- litellm/anthropic_beta_headers_config.json | 4 ++-- .../providers/test_anthropic_safeguards_beta_chaos.py | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/litellm/anthropic_beta_headers_config.json b/litellm/anthropic_beta_headers_config.json index 3a28d65e47c..dbc6060396a 100644 --- a/litellm/anthropic_beta_headers_config.json +++ b/litellm/anthropic_beta_headers_config.json @@ -46,7 +46,7 @@ "computer-use-2025-11-24": "computer-use-2025-11-24", "context-1m-2025-08-07": "context-1m-2025-08-07", "context-management-2025-06-27": "context-management-2025-06-27", - "dangerous-tool-use-2026-09-03": null, + "dangerous-tool-use-2026-09-03": "dangerous-tool-use-2026-09-03", "effort-2025-11-24": "effort-2025-11-24", "fast-mode-2026-02-01": null, "files-api-2025-04-14": "files-api-2025-04-14", @@ -217,7 +217,7 @@ "computer-use-2025-11-24": "computer-use-2025-11-24", "context-1m-2025-08-07": "context-1m-2025-08-07", "context-management-2025-06-27": "context-management-2025-06-27", - "dangerous-tool-use-2026-09-03": null, + "dangerous-tool-use-2026-09-03": "dangerous-tool-use-2026-09-03", "effort-2025-11-24": "effort-2025-11-24", "fast-mode-2026-02-01": "fast-mode-2026-02-01", "files-api-2025-04-14": "files-api-2025-04-14", diff --git a/tests/integration/providers/test_anthropic_safeguards_beta_chaos.py b/tests/integration/providers/test_anthropic_safeguards_beta_chaos.py index 0266bdc190f..40676400184 100644 --- a/tests/integration/providers/test_anthropic_safeguards_beta_chaos.py +++ b/tests/integration/providers/test_anthropic_safeguards_beta_chaos.py @@ -200,6 +200,7 @@ def _open_upstream_connections(pid: int, upstream: str) -> int: ) +@pytest.mark.skip(reason="Needs OwnedProxy.replacing_worker, which this stable line's integration harness does not have") @pytest.mark.timeout(180) async def test_worker_sigkill_mid_burst_leaves_the_sibling_sending_the_beta(gateway: Gateway, tmp_path: Path) -> None: calls: Final = _calls(20, stream=False)