From dc8c14b504cb797250242ac0bd7d6e34d2cd3e71 Mon Sep 17 00:00:00 2001 From: Emerson Gomes Date: Fri, 25 Jul 2025 19:27:13 -0500 Subject: [PATCH] Fix issue writing db (#13001) --- litellm/proxy/db/db_spend_update_writer.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/litellm/proxy/db/db_spend_update_writer.py b/litellm/proxy/db/db_spend_update_writer.py index e3338a8460..7931252040 100644 --- a/litellm/proxy/db/db_spend_update_writer.py +++ b/litellm/proxy/db/db_spend_update_writer.py @@ -872,7 +872,8 @@ class DBSpendUpdateWriter: "model": transaction["model"], "custom_llm_provider": transaction.get( "custom_llm_provider" - ), + ) + or "", "mcp_namespaced_tool_name": transaction.get( "mcp_namespaced_tool_name" )