mirror of
https://github.com/BerriAI/litellm.git
synced 2025-04-24 10:14:26 +00:00
(test) tg - ai - set max_tokens=5, fast test
This commit is contained in:
parent
bf30e8fdb2
commit
96e8c2b4cf
1 changed files with 2 additions and 1 deletions
|
@ -1310,12 +1310,13 @@ def test_completion_together_ai_mixtral():
|
|||
|
||||
|
||||
def test_completion_together_ai_yi_chat():
|
||||
litellm.set_verbose = True
|
||||
model_name = "together_ai/zero-one-ai/Yi-34B-Chat"
|
||||
try:
|
||||
messages = [
|
||||
{"role": "user", "content": "What llm are you?"},
|
||||
]
|
||||
response = completion(model=model_name, messages=messages)
|
||||
response = completion(model=model_name, messages=messages, max_tokens=5)
|
||||
# Add any assertions here to check the response
|
||||
print(response)
|
||||
cost = completion_cost(completion_response=response)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue