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]

oops

Steve Farthingaffbebdcefa8
diff --git a/tests/local_testing/test_pass_through_endpoints.py b/tests/local_testing/test_pass_through_endpoints.py
index 8914b9877e8..ae9644afb81 100644
--- a/tests/local_testing/test_pass_through_endpoints.py
+++ b/tests/local_testing/test_pass_through_endpoints.py
@@ -330,61 +330,6 @@ async def test_aaapass_through_endpoint_pass_through_keys_langfuse(
litellm.proxy.proxy_server, "proxy_logging_obj", original_proxy_logging_obj
)
-
-async def test_pass_through_endpoint_anthropic(client):
- import litellm
- from litellm import Router
- from litellm.adapters.anthropic_adapter import anthropic_adapter
-
- router = Router(
- model_list=[
- {
- "model_name": "gpt-3.5-turbo",
- "litellm_params": {
- "model": "gpt-3.5-turbo",
- "api_key": os.getenv("OPENAI_API_KEY"),
- "mock_response": "Hey, how's it going?",
- },
- }
- ]
- )
-
- setattr(litellm.proxy.proxy_server, "llm_router", router)
-
- # Define a pass-through endpoint
- pass_through_endpoints = [
- {
- "path": "/v1/test-messages",
- "target": anthropic_adapter,
- "headers": {"litellm_user_api_key": "my-test-header"},
- }
- ]
-
- # Initialize the pass-through endpoint
- await initialize_pass_through_endpoints(pass_through_endpoints)
- general_settings: Optional[dict] = (
- getattr(litellm.proxy.proxy_server, "general_settings", {}) or {}
- )
- general_settings.update({"pass_through_endpoints": pass_through_endpoints})
- setattr(litellm.proxy.proxy_server, "general_settings", general_settings)
-
- _json_data = {
- "model": "gpt-3.5-turbo",
- "messages": [{"role": "user", "content": "Who are you?"}],
- }
-
- # Make a request to the pass-through endpoint
- response = client.post(
- "/v1/test-messages", json=_json_data, headers={"my-test-header": "my-test-key"}
- )
-
- print("JSON response: ", _json_data)
-
- # Assert the response
- assert response.status_code == 200
-
-
@pytest.mark.asyncio
async def test_pass_through_endpoint_bing(client, monkeypatch):
import litellm