mirror of
https://github.com/BerriAI/litellm.git
synced 2026-09-08 22:21:35 +00:00
add test for anthropic routes
This commit is contained in:
parent
673105c88f
commit
9345c5de2a
1 changed files with 5 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue