mirror of
https://github.com/tiennm99/litellm.git
synced 2026-08-21 02:23:59 +00:00
(test) vertex ai use usage class
This commit is contained in:
@@ -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}")
|
||||
|
||||
Reference in New Issue
Block a user