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]
Python ai-gatewayanthropicazure-openaibedrockgatewaylangchainlitellmllmllm-gatewayllmopsmcp-gatewayopenaiopenai-proxyrustrust-aivertex-ai
test(integration): price fireworks cached input at the 50% default
kerry9bd648baf590
diff --git a/tests/integration/contracts.json b/tests/integration/contracts.jsonindex 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.jsonindex 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}