mirror of
https://github.com/BerriAI/litellm.git
synced 2026-10-10 03:28:53 +00:00
Merge 6b959f92c4 into 3746ba58d7
This commit is contained in:
commit
2bbea979d9
1 changed files with 18 additions and 0 deletions
|
|
@ -1105,6 +1105,7 @@ def test_aaamodel_prices_and_context_window_json_is_valid():
|
|||
},
|
||||
"input_cost_per_token": {"type": "number"},
|
||||
"output_cost_per_token": {"type": "number"},
|
||||
"cache_creation_input_token_cost": {"type": "number"},
|
||||
"cache_read_input_token_cost": {"type": "number"},
|
||||
"cache_creation_input_token_cost": {"type": "number"},
|
||||
"output_cost_per_reasoning_token": {"type": "number"},
|
||||
|
|
@ -1124,6 +1125,23 @@ def test_aaamodel_prices_and_context_window_json_is_valid():
|
|||
},
|
||||
}
|
||||
|
||||
validate(
|
||||
{
|
||||
"tiered-cache-creation-regression": {
|
||||
"tiered_pricing": [
|
||||
{
|
||||
"range": [0, 128000],
|
||||
"input_cost_per_token": 0.0000008,
|
||||
"output_cost_per_token": 0.000002,
|
||||
"cache_creation_input_token_cost": 0.000001,
|
||||
"cache_read_input_token_cost": 0.0000002,
|
||||
}
|
||||
],
|
||||
}
|
||||
},
|
||||
INTENDED_SCHEMA,
|
||||
)
|
||||
|
||||
prod_json = os.path.join(
|
||||
os.path.dirname(__file__), "..", "..", "model_prices_and_context_window.json"
|
||||
)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue