From 9bd648baf590ccf5ad3f81ccc44e29a57c3bc7b9 Mon Sep 17 00:00:00 2001 From: kerry Date: Sat, 19 Sep 2026 19:22:25 +0000 Subject: [PATCH] test(integration): price fireworks cached input at the 50% default Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com> --- tests/integration/contracts.json | 2 +- .../integration/cost_calculation/cost_tracking_cases.json | 7 ++++--- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/tests/integration/contracts.json b/tests/integration/contracts.json index 1b0c9e31d4e..338ace07908 100644 --- a/tests/integration/contracts.json +++ b/tests/integration/contracts.json @@ -559,7 +559,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 428124ac4a9..b0ad270f860 100644 --- a/tests/integration/cost_calculation/cost_tracking_cases.json +++ b/tests/integration/cost_calculation/cost_tracking_cases.json @@ -7958,7 +7958,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": { @@ -8014,9 +8014,10 @@ } }, "expected": { - "spend": 0.0021672, - "input_cost": 0.0019392, + "spend": 0.0012456, + "input_cost": 0.0010176, "output_cost": 0.000228, + "cache_read_cost": 0.0009216, "prompt_tokens": 12928, "completion_tokens": 380 }