diff --git a/litellm/proxy/utils.py b/litellm/proxy/utils.py index 461af1617a7..9c0606d1d65 100644 --- a/litellm/proxy/utils.py +++ b/litellm/proxy/utils.py @@ -5713,7 +5713,7 @@ async def _requeue_spend_log_transactions(prisma_client: PrismaClient, logs: Seq if not logs: return async with prisma_client._spend_log_transactions_lock: - prisma_client.spend_log_transactions = [*logs, *prisma_client.spend_log_transactions] + prisma_client.spend_log_transactions[:0] = logs def _requeue_tool_usage_transactions_if_flush_failed(