The association between AST/ALT ratio and diabetic retinopathy was assessed using multivariate logistic regression, and a generalized additive model (GAM) was used to investigate nonlinear relationships. Here, GPT is linked to diabetic retinopathy.