mirror of
https://github.com/BerriAI/litellm.git
synced 2025-04-24 18:24:20 +00:00
(test) vertex ai use usage class
This commit is contained in:
parent
dcdbd02a67
commit
8e36f667e5
1 changed files with 3 additions and 0 deletions
|
@ -1031,6 +1031,9 @@ def test_completion_together_ai():
|
|||
# print("making request", model)
|
||||
# response = completion(model="vertex_ai/codechat-bison-32k", messages=[{'role': 'user', 'content': 'hi'}])
|
||||
# print(response)
|
||||
|
||||
# print(response.usage.completion_tokens)
|
||||
# print(response['usage']['completion_tokens'])
|
||||
# assert type(response.choices[0].message.content) == str
|
||||
# except Exception as e:
|
||||
# pytest.fail(f"Error occurred: {e}")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue