From f552c02556e4353434a47aaad1048e17df8eec48 Mon Sep 17 00:00:00 2001 From: Shao-Kan Chu Date: Wed, 23 Jul 2025 02:56:38 -0400 Subject: [PATCH] set default value for mcp namespace tool name to prevent duplicate entry in table --- litellm/proxy/db/db_spend_update_writer.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/litellm/proxy/db/db_spend_update_writer.py b/litellm/proxy/db/db_spend_update_writer.py index e3338a84607..f8bc5e86dc2 100644 --- a/litellm/proxy/db/db_spend_update_writer.py +++ b/litellm/proxy/db/db_spend_update_writer.py @@ -892,7 +892,7 @@ async def _update_daily_spend( "model_group": transaction.get("model_group"), "mcp_namespaced_tool_name": transaction.get( "mcp_namespaced_tool_name" - ), + ) or "", "custom_llm_provider": transaction.get( "custom_llm_provider" ),