test(test_completion.py): remove deprecated together ai model

This commit is contained in:
Krrish Dholakia 2024-02-22 21:33:34 -08:00
parent b6017115e3
commit 01e6c7ed89

View file

@ -1306,35 +1306,6 @@ def test_replicate_custom_prompt_dict():
######## Test TogetherAI ########
def test_completion_together_ai():
model_name = "together_ai/togethercomputer/CodeLlama-13b-Instruct"
try:
messages = [
{"role": "user", "content": "Who are you"},
{"role": "assistant", "content": "I am your helpful assistant."},
{"role": "user", "content": "Tell me a joke"},
]
response = completion(
model=model_name,
messages=messages,
max_tokens=256,
n=1,
logger_fn=logger_fn,
)
# Add any assertions here to check the response
print(response)
cost = completion_cost(completion_response=response)
assert cost > 0.0
print(
"Cost for completion call together-computer/llama-2-70b: ",
f"${float(cost):.10f}",
)
except litellm.Timeout as e:
pass
except Exception as e:
pytest.fail(f"Error occurred: {e}")
@pytest.mark.skip(reason="Skip flaky test")
def test_completion_together_ai_mixtral():
model_name = "together_ai/DiscoResearch/DiscoLM-mixtral-8x7b-v2"