• Development of diabetes during ICIs with anti-PD-1 or PD-L1 is not a contraindication to continued ICIs use.• Where the situation is severe, ICsI can be delayed for a few days. The gene discussed is CD274; the disease is diabetes mellitus.