forked from phoenix/litellm-mirror
fix test_completion_bedrock_httpx_models
This commit is contained in:
parent
9590d63a38
commit
ca76d2fd72
1 changed files with 26 additions and 20 deletions
|
@ -3065,6 +3065,7 @@ def response_format_tests(response: litellm.ModelResponse):
|
||||||
@pytest.mark.asyncio
|
@pytest.mark.asyncio
|
||||||
async def test_completion_bedrock_httpx_models(sync_mode, model):
|
async def test_completion_bedrock_httpx_models(sync_mode, model):
|
||||||
litellm.set_verbose = True
|
litellm.set_verbose = True
|
||||||
|
try:
|
||||||
|
|
||||||
if sync_mode:
|
if sync_mode:
|
||||||
response = completion(
|
response = completion(
|
||||||
|
@ -3091,6 +3092,11 @@ async def test_completion_bedrock_httpx_models(sync_mode, model):
|
||||||
response_format_tests(response=response)
|
response_format_tests(response=response)
|
||||||
|
|
||||||
print(f"response: {response}")
|
print(f"response: {response}")
|
||||||
|
except litellm.RateLimitError as e:
|
||||||
|
print("got rate limit error=", e)
|
||||||
|
pass
|
||||||
|
except Exception as e:
|
||||||
|
pytest.fail(f"An error occurred - {str(e)}")
|
||||||
|
|
||||||
|
|
||||||
def test_completion_bedrock_titan_null_response():
|
def test_completion_bedrock_titan_null_response():
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue