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(vector_stores): default the search-count debug log to a tuple so LIT002 stays within budget

mateo-berric4d09a31e063
diff --git a/litellm/integrations/vector_store_integrations/vector_store_pre_call_hook.py b/litellm/integrations/vector_store_integrations/vector_store_pre_call_hook.py
index 636e076a229..b2243060c6c 100644
--- a/litellm/integrations/vector_store_integrations/vector_store_pre_call_hook.py
+++ b/litellm/integrations/vector_store_integrations/vector_store_pre_call_hook.py
@@ -276,7 +276,7 @@ class VectorStorePreCallHook(CustomLogger):
verbose_logger.debug(
"Vector store search completed for vector_store_id=%s. Added context from %s results",
vector_store_id,
- len(search_response.get("data", []) or []),
+ len(search_response.get("data") or ()),
)
return SearchSucceeded(response=search_response)