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: fix test

Krrish Dholakia0e747aaaf1f9
diff --git a/.gitignore b/.gitignore
index ed8c88c8990..c2ac5137cbe 100644
--- a/.gitignore
+++ b/.gitignore
@@ -95,4 +95,5 @@ test.py
litellm_config.yaml
.cursor
.vscode/launch.json
-litellm/proxy/to_delete_loadtest_work/*
\ No newline at end of file
+litellm/proxy/to_delete_loadtest_work/*
+update_model_cost_map.py
diff --git a/tests/local_testing/test_completion_cost.py b/tests/local_testing/test_completion_cost.py
index e8f5de534dc..8b546b8427e 100644
--- a/tests/local_testing/test_completion_cost.py
+++ b/tests/local_testing/test_completion_cost.py
@@ -1068,6 +1068,7 @@ def test_completion_cost_prompt_caching(model, custom_llm_provider):
(
response_1.usage.prompt_tokens
- response_1.usage.prompt_tokens_details.cached_tokens
+ - response_1.usage.prompt_tokens_details.cache_creation_tokens
)
* _model_info["input_cost_per_token"]
+ (response_1.usage.prompt_tokens_details.cached_tokens or 0)