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" )