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]

test_string_cost_values

Ishaan Jaffer59d2f0f46519
diff --git a/tests/test_litellm/litellm_core_utils/llm_cost_calc/test_llm_cost_calc_utils.py b/tests/test_litellm/litellm_core_utils/llm_cost_calc/test_llm_cost_calc_utils.py
index 8e49fe7b58d..be3133ca37e 100644
--- a/tests/test_litellm/litellm_core_utils/llm_cost_calc/test_llm_cost_calc_utils.py
+++ b/tests/test_litellm/litellm_core_utils/llm_cost_calc/test_llm_cost_calc_utils.py
@@ -226,7 +226,7 @@ def test_string_cost_values():
completion_tokens=500,
total_tokens=1500,
prompt_tokens_details=PromptTokensDetailsWrapper(
- audio_tokens=100, cached_tokens=200, text_tokens=700, image_tokens=None
+ audio_tokens=100, cached_tokens=200, text_tokens=700, image_tokens=None, cache_creation_tokens=150
),
completion_tokens_details=CompletionTokensDetailsWrapper(
audio_tokens=50,
@@ -235,7 +235,6 @@ def test_string_cost_values():
accepted_prediction_tokens=None,
rejected_prediction_tokens=None,
),
- _cache_creation_input_tokens=150,
)
# Mock get_model_info to return our mock model info