Skip to content

The fastest, litest AI Gateway. Rust core with Python SDK. Call 100+ LLM APIs in OpenAI (or native) format with cost tracking, guardrails, load balancing, and logging [Bedrock, Azure, OpenAI, Anthropic, OpenAI, VertexAI, vLLM, Nvidia NIM]

fix(test): repin fireworks fallback cache-read case to the 50% default

kerry02736e20cc17
diff --git a/tests/integration/contracts.json b/tests/integration/contracts.json
index fe7b6dfe7ac..91bf7a1ca18 100644
--- a/tests/integration/contracts.json
+++ b/tests/integration/contracts.json
@@ -550,7 +550,7 @@
"tests/integration/cost_calculation/test_cost_tracking.py::test_case_bills_expected_cost[fireworks_ai-accounts-fireworks-models-deepseek-v4p1-flash-input_text]": [
"quota_management.spend_tracking.cost_matrix.logs_cost"
],
- "tests/integration/cost_calculation/test_cost_tracking.py::test_case_bills_expected_cost[fireworks_ai-accounts-fireworks-models-deepseek-v4p1-flash-fallback_cache_read_at_input_rate]": [
+ "tests/integration/cost_calculation/test_cost_tracking.py::test_case_bills_expected_cost[fireworks_ai-accounts-fireworks-models-deepseek-v4p1-flash-fallback_cache_read_at_half_input_rate]": [
"quota_management.spend_tracking.cost_matrix.logs_cost"
],
"tests/integration/cost_calculation/test_cost_tracking.py::test_case_bills_expected_cost[fireworks_ai-accounts-fireworks-models-deepseek-v4p1-flash-stream]": [
diff --git a/tests/integration/cost_calculation/cost_tracking_cases.json b/tests/integration/cost_calculation/cost_tracking_cases.json
index 3627774816f..d8b9be3a558 100644
--- a/tests/integration/cost_calculation/cost_tracking_cases.json
+++ b/tests/integration/cost_calculation/cost_tracking_cases.json
@@ -7952,7 +7952,7 @@
}
},
{
- "name": "fireworks_ai-accounts-fireworks-models-deepseek-v4p1-flash-fallback_cache_read_at_input_rate",
+ "name": "fireworks_ai-accounts-fireworks-models-deepseek-v4p1-flash-fallback_cache_read_at_half_input_rate",
"covers": "quota_management.spend_tracking.cost_matrix.logs_cost",
"model": "fireworks_ai/accounts/fireworks/models/deepseek-v4p1-flash",
"request": {
@@ -8008,8 +8008,8 @@
}
},
"expected": {
- "spend": 0.0021672,
- "input_cost": 0.0019392,
+ "spend": 0.0012456,
+ "input_cost": 0.0010176,
"output_cost": 0.000228,
"prompt_tokens": 12928,
"completion_tokens": 380