forked from phoenix/litellm-mirror
fix replicate test
This commit is contained in:
parent
4e7b5aa9d7
commit
21d3407b95
1 changed files with 4 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue