mirror of
https://github.com/BerriAI/litellm.git
synced 2025-04-27 03:34:10 +00:00
(fix) provider wildcard routing - when models specificed without provider prefix (#6173)
* fix wildcard routing scenario * fix pattern matching hits
This commit is contained in:
parent
7faac40aec
commit
048a46c5da
2 changed files with 26 additions and 1 deletions
|
@ -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():
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue