Our results predicted that astragalin and rosmarinic acid might regulate the JAK-STAT pathway by targeting PIM2 and STAT1, respectively, while paeoniflorin and rosmarinic acid were likely to regulate inflammatory responses by targeting TNFα, IL-6, and IL-4 during T2D. This evidence concerns the gene IL4 and type 2 diabetes mellitus.