add tests to check ai21 models cost is calculated correct
This commit is contained in:
parent
6bd6c956a5
commit
fdaaea9b0d
@ -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…
Reference in New Issue
Block a user