(fix) provider wildcard routing - when models specificed without provider prefix (#6173)

* fix wildcard routing scenario

* fix pattern matching hits
This commit is contained in:
Ishaan Jaff 2024-10-12 16:01:21 +05:30 committed by GitHub
parent b032e898c2
commit 80ecf0829c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 26 additions and 1 deletions

View file

@ -124,6 +124,11 @@ async def test_router_provider_wildcard_routing():
print("response 3 = ", response3)
response4 = await router.acompletion(
model="claude-3-5-sonnet-20240620",
messages=[{"role": "user", "content": "hello"}],
)
@pytest.mark.asyncio()
async def test_router_provider_wildcard_routing_regex():