forked from phoenix/litellm-mirror
test_bad_request_error_contains_httpx_response
This commit is contained in:
parent
9168525e68
commit
812be07c3b
1 changed files with 5 additions and 0 deletions
|
@ -1158,6 +1158,11 @@ async def test_exception_with_headers_httpx(
|
||||||
@pytest.mark.asyncio
|
@pytest.mark.asyncio
|
||||||
@pytest.mark.parametrize("model", ["azure/chatgpt-v-2", "openai/gpt-3.5-turbo"])
|
@pytest.mark.parametrize("model", ["azure/chatgpt-v-2", "openai/gpt-3.5-turbo"])
|
||||||
async def test_bad_request_error_contains_httpx_response(model):
|
async def test_bad_request_error_contains_httpx_response(model):
|
||||||
|
"""
|
||||||
|
Test that the BadRequestError contains the httpx response
|
||||||
|
|
||||||
|
Relevant issue: https://github.com/BerriAI/litellm/issues/6732
|
||||||
|
"""
|
||||||
try:
|
try:
|
||||||
await litellm.acompletion(
|
await litellm.acompletion(
|
||||||
model=model,
|
model=model,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue