From 21d3407b9571ccdcc607fc8224fc733f938990dc Mon Sep 17 00:00:00 2001 From: Ishaan Jaff Date: Tue, 7 May 2024 19:48:46 -0700 Subject: [PATCH] fix replicate test --- litellm/tests/test_completion.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/litellm/tests/test_completion.py b/litellm/tests/test_completion.py index 471ebfee6..32b65faea 100644 --- a/litellm/tests/test_completion.py +++ b/litellm/tests/test_completion.py @@ -2168,9 +2168,9 @@ def test_completion_replicate_vicuna(): def test_replicate_custom_prompt_dict(): litellm.set_verbose = True - model_name = "replicate/meta/llama-2-70b-chat" + model_name = "replicate/meta/llama-2-7b" litellm.register_prompt_template( - model="replicate/meta/llama-2-70b-chat", + model="replicate/meta/llama-2-7b", initial_prompt_value="You are a good assistant", # [OPTIONAL] roles={ "system": { @@ -2200,6 +2200,7 @@ def test_replicate_custom_prompt_dict(): repetition_penalty=0.1, num_retries=3, ) + except litellm.APIError as e: pass except litellm.APIConnectionError as e: @@ -3016,6 +3017,7 @@ async def test_acompletion_gemini(): else: pytest.fail(f"Error occurred: {e}") + # Deepseek tests def test_completion_deepseek(): litellm.set_verbose = True