Skip to content

The fastest, litest AI Gateway. Rust core with Python SDK. Call 100+ LLM APIs in OpenAI (or native) format with cost tracking, guardrails, load balancing, and logging [Bedrock, Azure, OpenAI, Anthropic, OpenAI, VertexAI, vLLM, Nvidia NIM]

test_anthropic_custom_headers

Ishaan Jaffer582fbf9040ca
diff --git a/tests/llm_translation/test_anthropic_completion.py b/tests/llm_translation/test_anthropic_completion.py
index e9ab3998361..405e0d2c82a 100644
--- a/tests/llm_translation/test_anthropic_completion.py
+++ b/tests/llm_translation/test_anthropic_completion.py
@@ -1134,7 +1134,7 @@ def test_anthropic_custom_headers():
try:
resp = completion(
model="claude-3-5-sonnet-20240620",
- headers={"anthropic-beta": "structured-output-2024-03-01"},
+ headers={"anthropic-beta": "computer-use-2025-01-24"},
messages=[
{"role": "user", "content": "What is the capital of France?"}
],
@@ -1146,7 +1146,7 @@ def test_anthropic_custom_headers():
mock_post.assert_called_once()
headers = mock_post.call_args[1]["headers"]
- assert "structured-output-2024-03-01" in headers["anthropic-beta"]
+ assert "computer-use-2025-01-24" in headers["anthropic-beta"]
@pytest.mark.parametrize(