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]

feat: hash prompt when caching

prd-tuong-nguyen0aaf761f258b
diff --git a/litellm/caching.py b/litellm/caching.py
index e23bd5bfc72..c9b659d3f84 100644
--- a/litellm/caching.py
+++ b/litellm/caching.py
@@ -1827,6 +1827,7 @@ class Cache:
completion_kwargs = [
"model",
"messages",
+ "prompt",
"temperature",
"top_p",
"n",