From 9345c5de2a1dcc7c010730a107bf059433faa4b7 Mon Sep 17 00:00:00 2001 From: Ishaan Jaff Date: Mon, 22 Jul 2024 14:48:22 -0700 Subject: [PATCH] add test for anthropic routes --- litellm/tests/test_proxy_routes.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/litellm/tests/test_proxy_routes.py b/litellm/tests/test_proxy_routes.py index 0e3f6339c7e..6f5774d3e73 100644 --- a/litellm/tests/test_proxy_routes.py +++ b/litellm/tests/test_proxy_routes.py @@ -93,3 +93,8 @@ def test_is_llm_api_route(route: str, expected: bool): ) def test_is_llm_api_route_similar_but_false(route: str): assert is_llm_api_route(route) == False + + +def test_anthropic_api_routes(): + # allow non proxy admins to call anthropic api routes + assert is_llm_api_route(route="/v1/messages") is True