From c4d09a31e0631f03c87fe27c1fd6dcfce16e2c6c Mon Sep 17 00:00:00 2001 From: mateo-berri <277851410+mateo-berri@users.noreply.github.com> Date: Fri, 4 Sep 2026 20:20:07 -0700 Subject: [PATCH] fix(vector_stores): default the search-count debug log to a tuple so LIT002 stays within budget --- .../vector_store_integrations/vector_store_pre_call_hook.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)