mirror of
https://github.com/BerriAI/litellm.git
synced 2026-09-06 08:16:43 +00:00
add tests to check ai21 models cost is calculated correct
This commit is contained in:
parent
6bd6c956a5
commit
fdaaea9b0d
1 changed files with 4 additions and 0 deletions
|
|
@ -2555,3 +2555,7 @@ async def test_partner_models_httpx_ai21():
|
|||
assert response.usage.total_tokens == 194
|
||||
|
||||
print(f"response: {response}")
|
||||
|
||||
print("hidden params from response=", response._hidden_params)
|
||||
|
||||
assert response._hidden_params["response_cost"] > 0
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue