mirror of
https://github.com/BerriAI/litellm.git
synced 2026-11-11 08:38:24 +00:00
test(openai): accept SDK 2's missing-key message in the unkeyed deployment test
This commit is contained in:
parent
3a3987bfd7
commit
9a710306f8
1 changed files with 1 additions and 1 deletions
|
|
@ -592,7 +592,7 @@ async def test_unkeyed_openai_deployment_never_sends_the_openai_admin_key(
|
|||
"api_base": api_base,
|
||||
}
|
||||
|
||||
with pytest.raises(litellm.AuthenticationError, match="Missing credentials"):
|
||||
with pytest.raises(litellm.AuthenticationError, match=r"Missing credentials|The api_key client option must be set"):
|
||||
await litellm.acompletion(**request) if is_async else litellm.completion(**request)
|
||||
|
||||
assert not route.called
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue