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]

fix(cache-qdrant-semantic): annotate indexing wait payloads

Yujong Leeb71e64446c3d
diff --git a/litellm/caching/qdrant_semantic_cache.py b/litellm/caching/qdrant_semantic_cache.py
index 868f36f7f21..64764ce402c 100644
--- a/litellm/caching/qdrant_semantic_cache.py
+++ b/litellm/caching/qdrant_semantic_cache.py
@@ -313,7 +313,7 @@ class QdrantSemanticCache(BaseCache):
self.sync_client.put(
url=f"{self.qdrant_api_base}/collections/{self.collection_name}/points",
headers=self.headers,
- params={"wait": "true"},
+ params={"wait": "true"}, # mutable-ok: Qdrant requires an explicit indexing wait
json=data,
)
@@ -423,7 +423,7 @@ class QdrantSemanticCache(BaseCache):
await self.async_client.put(
url=f"{self.qdrant_api_base}/collections/{self.collection_name}/points",
headers=self.headers,
- params={"wait": "true"},
+ params={"wait": "true"}, # mutable-ok: Qdrant requires an explicit indexing wait
json=data,
)