mirror of
https://github.com/BerriAI/litellm.git
synced 2026-09-07 08:26:10 +00:00
test(test_completion.py): remove deprecated together ai model
This commit is contained in:
parent
b6017115e3
commit
01e6c7ed89
1 changed files with 0 additions and 29 deletions
|
|
@ -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"
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue